Uploaded image for project: 'SonarLint Core Library'
  1. SonarLint Core Library
  2. SLCORE-292

Logged exception are losts on info/debug/trace level

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      For example with SonarJava:

      Could not complete symbolic execution: 
      

      In fact this is an "abuse" of sonar-plugin-api that do not officially supports Throwable as parameters for info/debug/trace methods, but on scanner side it works because the implementation uses logback under the hood.
      So https://github.com/SonarSource/sonar-enterprise/blob/19e4b8729f69e129f4f9fe4b4b3db7891734bd8c/sonar-plugin-api/src/main/java/org/sonar/api/utils/log/LogbackLogger.java#L75
      will call the overloaded method:
      https://github.com/qos-ch/logback/blob/bbc783e6d68482abe8e7dff0d06708175e971b91/logback-classic/src/main/java/ch/qos/logback/classic/Logger.java#L499

        Attachments

          Activity

            People

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

              Dates

              Due:
              Created:
              Updated:
              Resolved: