Uploaded image for project: 'IronJacamar'
  1. IronJacamar
  2. JBJCA-1294

caching the value of isTraceEnabled

XMLWordPrintable

      caching the value of isTraceEnabled does not allow for complete dynamic control of the logging level. This has ramifications in support scenarios where diagnostics are needed and the ability to reload an instance to enable TRACE level logging is prohibitive.

      see examples of TRACE being cached:
      grep 'log.isTraceEnabled();' -r * --include='*.java'

      Replacement of all if (trace) with calls to log.tracef would be needed.

      Note, that some "if (trace)" would have to be replaced by if (log.isTraceEnabled()) calls, as they guard multiple lines of code, and even synchronization blocks

              rhn-cservice-bbaranow Bartosz Baranowski
              rhn-support-jolee Johnathon Lee
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: