Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-15652

Debug.jsp does not update all existing appenders when trying to override -Dcom.iplanet.services.debug.level at runtime

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.5.1, 6.5.2.2
    • Fix Version/s: 6.0.1, 5.5.2, 6.5.3
    • Component/s: debug logging
    • Labels:
    • Sprint:
      AM Sustaining Sprint 69, AM Sustaining Sprint 70
    • Story Points:
      3
    • Needs backport:
      No
    • Support Ticket IDs:
    • Needs QA verification:
      No
    • Functional tests:
      No
    • Are the reproduction steps defined?:
      Yes and I used the same an in the description

      Description

      Bug description

      Debug.jsp should be able to override the logging level of all existing debug loggers.

      How to reproduce the issue

      1. Set -Dcom.iplanet.services.debug.level=message and -Dcom.iplanet.services.debug.directory=/home/forgerock/debug system properties on the container. Start and install AM.
      2. tail -f CoreSystem log. Note constant logging of org.forgerock.audit.AuditServiceImpl entries
      3. Set CoreSystem logging to ERROR via openam.example.com/openam/Debug.jsp and confirm.
      4. tail -f CoreSystem log. Note org.forgerock.audit.AuditServiceImpl entries are still being logged (this is message level).
      Expected behaviour
      Existing debug loggers should change to ERROR level.
      Current behaviour
      Not all existing debug loggers logging level has been changed.  There is less activity logged to the files after the change but not all appenders have been updated to error from message level.

      Work around

      Stop AM and remove system properties. In some cases this is not possible/ideal. Also, if troubleshooting intermittent deployment issues, MESSAGE level will need to be enabled using the system property but if there is no issue with the deployment, customers should be able to change the logging level down to ERROR level without restarting AM.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lawrence.yarham Lawrence Yarham
                Reporter:
                aaron.haskins Aaron Haskins
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: