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

Improve logging of error messages at server startup

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.4
    • Component/s: None
    • Labels:

      Description

      As expected org.sonar.api.utils.MessageExceptions are logged without stacktrace but the message is on a new line instead of being a regular log (timestamp + ERROR) :

      2016.03.16 13:31:02 INFO  web[o.sonar.db.Database] Create JDBC data source for jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance
      2016.03.16 13:31:02 ERROR web[o.a.c.c.C.[.[.[/]] Exception sending context initialized event to listener instance of class org.sonar.server.platform.PlatformServletContextListener
      org.sonar.api.utils.MessageException: Unsupported mysql version: 5.5. Minimal supported version is 5.6.
      2016.03.16 13:31:02 ERROR web[o.a.c.c.StandardContext] One or more listeners failed to start. Full details will be found in the appropriate container log file
      2016.03.16 13:31:02 ERROR web[o.a.c.c.StandardContext] Context [] startup failed due to previous errors
      

      It would be more readable to have :

      2016.03.16 13:31:02 INFO  web[o.sonar.db.Database] Create JDBC data source for jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance
      2016.03.16 13:31:02 ERROR Unsupported mysql version: 5.5. Minimal supported version is 5.6.
      2016.03.16 13:31:02 ERROR web[o.a.c.c.StandardContext] One or more listeners failed to start. Full details will be found in the appropriate container log file
      2016.03.16 13:31:02 ERROR web[o.a.c.c.StandardContext] Context [] startup failed due to previous errors
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sebastien.lesaint Sebastien Lesaint
                Reporter:
                simon.brandhof Simon Brandhof
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: