Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-3275

Replace String.format in the log statements

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • None
    • None
    • 2

      Using String.format in log messages when using slf4j is discouraged because the string interpolation is performed even if the log is disabled.We have to rewrite them
      For example, statement like

      logger.debug(String.format("Push Message Request from [%s] API was internally submitted for further processing", message.getClientIdentifier()));
      

      will become

      logger.debug("Push Message Request from {} API was internally submitted for further processing", message.getClientIdentifier());
      

            Unassigned Unassigned
            polina.n.koleva Polina Koleva (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: