Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-8905

MockLogAppender.setupLogging() doesn't override default log level

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 19.0.0
    • Fix Version/s: 22.0.0
    • Component/s: Logging
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      Using MockLogAppender.setupLogging() in the @Before method of a test doesn't override the log level for loggers created earlier during classloading of other classes in the test. This causes DEBUG messages to leak into test output and can negatively impact performance of the tests due to excess logging.

        Attachments

          Activity

            People

            • Assignee:
              seth Seth Leger
              Reporter:
              seth Seth Leger
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: