GrouperLogger is not logging except to debug

XMLWordPrintable

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor
    • 4.22.0, 6.1.0, 7.0.1
    • Affects Version/s: 7.0.1
    • Component/s: None
    • None

      the logic of the GrouperLogger class.  E,g,

      public void error(Object message, Throwable t) {
      Object wrapLogMessage = wrapLogMessage(message);
      if (this.wrappedLog instanceof Log4JLogger )

      { ((Log4JLogger)this.wrappedLog).getLogger().log(GrouperLogger.class.getName(), Level.ERROR, wrapLogMessage, t); }

      else

      { this.wrappedLog.debug(wrapLogMessage); }

      }

      The wrapped loggers are now of class org.apache.commons.logging.impl.Log4jApiLogFactory$Log4j2Log. They are no longer Log4JLogger. So when logging at error/info/warn level, it does the ELSE option which is to log at debug level. But only a few classes are set to log at debug level, so most warnings and errors are never output. I don't know when this started, but I have noticed the log has been unusually terse when trying to troubleshoot

            Assignee:
            Chris Hyzer
            Reporter:
            Chris Hyzer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: