Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-7540

Throwable attached to logs is lost on scanner side when using LogOutput API

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2
    • Fix Version/s: 5.5
    • Component/s: Scanner
    • Labels:
      None

      Description

      When something is logged with an attached stacktrace (LOG.error(msg, t) ) the stacktrace is no displayed in Scanner logs but only for scanners using the new log redirection feature (LogOutput).

      Technical details: LogCallbackAppender only pass event.getFormattedMessage() to the scanner. event.getThrowableProxy() is lost.

        Attachments

          Activity

            People

            Assignee:
            julien.henry Julien Henry
            Reporter:
            julien.henry Julien Henry
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: