Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-5115

Replace use of conditional logging with slf4j parameterized messages

    XMLWordPrintable

    Details

    • 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);
      

      and also

      log.debug("The entry is " + entry);
      

      read https://www.slf4j.org/faq.html#logging_performance

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              gracebish grace nakiguli
              Reporter:
              teleivo Ivo Ulrich
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 weeks
                  3w