Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-836

Remove logger.debug("", exception) from code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Casablanca Release
    • Amsterdam Release
    • SDC

      In SDC onboarding, caught exceptions are often written to the log with the DEBUG debug and without any context-specific message. This silences up static analysis tools and in some case doesn't allow to handle the exceptions properly (e.g. propagate as a cause, print to the log with a meaningful message, etc).

      Attaching a log of searching all Java files with regular expression:

      \.\s*debug\s*(\s*\"\s*\"\s*,

      All unnecessary Logger members must be removed (some were introduced just to write this debug message).

            talhalfon talhalfon
            vempo vempo
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: