Uploaded image for project: 'Usergrid (Retired)'
  1. Usergrid (Retired)
  2. USERGRID-1243

Replace logging string concatenation with formatting

Details

    • Story
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0
    • None
    • None
    • Usergrid 33

    Description

      Concatenating strings when logging creates temporary strings that can have a negative effect on GC. Instead, log4j's string formatting functionality should be used.

      Example:
      Replace
      logger.info("Invalid property value. name = " + name + ", value = " + value);
      with
      logger.info("Invalid property value. name = {}, value = {}", name, value);

      Also:
      1) Standardize on slf4j version 1.7.2, which includes variable argument support.
      2) Remove extraneous object creation (for when variable argument support didn't exist).
      3) Change debug statements for element creation/deletion, connections, etc. to trace.

      Attachments

        Issue Links

          Activity

            People

              mdunker Mike Dunker
              mdunker Mike Dunker
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: