Simplify logging enabled and formatting checks

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Instead of doing:

                      if (LOGGER.isWarnEnabled()) {
                          LOGGER.warn(format("Exception thrown raising server opening event to listener %s", cur), e);
                      }
      

      Follow the org.slf4j pattern in the code of:

      void warn(String var1, Object... var2);
      

      So then you could do:

      LOGGER.warn("Exception thrown raising server opening event to listener {}", cur, e);
      

            Assignee:
            Unassigned
            Reporter:
            Ross Lawley
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: