SLF4J usage issues

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor - P4
    • None
    • Affects Version/s: 1.3.0
    • Component/s: Sink
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I found the following logging issues:

      1. premature toString() invocation
        LOGGER.debug(record.toString());
        
      2. string concatenation
        LOGGER.debug("key: " + keyDoc.toString());
        

      which may cause performance issues in high-load applications.

      In particular, I encountered unnecessary pressure on GC due to the premature toString() invocation.

              Assignee:
              Maxim Katcharov
              Reporter:
              Andrey Pustovetov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: