Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-5115 Replace use of conditional logging with slf4j parameterized messages
  3. TRUNK-5429

Replace use of conditional logging with slf4j parametrized messages for openmrs-api

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Checkstyle
    • Labels:
      None
    • Complexity:
      Low

      Description

      Replace use of conditionals

      if(log.isDebugEnabled()) {
        log.debug("Entry number: " + i + " is " + String.valueOf(entry[i]));
      }

      which are aimed at preventing to construct the debug message with slf4js parametrized messages

      log.debug("The entry is {}.", entry);

      Why? See [https://www.slf4j.org/faq.html#logging_performance

      There are small problems with this task (see TRUNK-5427).

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ionkin42 Mikhail Ionkin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: