aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-application
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-08-11 14:40:35 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-08-16 08:20:14 +0200
commit12ad1060151fb075c685c104bb9bd60999bb0ef3 (patch)
treed2f8358df96ab1073dd771d2f040ba1bf8c12723 /sonar-application
parent120e926c887670fcac0a41e7cab26382c6221175 (diff)
downloadsonarqube-12ad1060151fb075c685c104bb9bd60999bb0ef3.tar.gz
sonarqube-12ad1060151fb075c685c104bb9bd60999bb0ef3.zip
SONAR-7833 task start/stop logs in sonar.log only if DEBUG is enabled
start log is always at DEBUG level stop log is at DEBUG level in case of success, at ERROR level in case of error
Diffstat (limited to 'sonar-application')
-rw-r--r--sonar-application/src/main/java/org/sonar/application/AppLogging.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-application/src/main/java/org/sonar/application/AppLogging.java b/sonar-application/src/main/java/org/sonar/application/AppLogging.java
index 190a5fecd43..5679f75d56f 100644
--- a/sonar-application/src/main/java/org/sonar/application/AppLogging.java
+++ b/sonar-application/src/main/java/org/sonar/application/AppLogging.java
@@ -70,7 +70,7 @@ class AppLogging {
}
private void configureConsole(LoggerContext loggerContext) {
- ConsoleAppender<ILoggingEvent> consoleAppender = helper.newConsoleAppender(loggerContext, CONSOLE_APPENDER, "%msg%n", null);
+ ConsoleAppender<ILoggingEvent> consoleAppender = helper.newConsoleAppender(loggerContext, CONSOLE_APPENDER, "%msg%n");
Logger consoleLogger = loggerContext.getLogger(CONSOLE_LOGGER);
consoleLogger.setAdditive(false);
consoleLogger.addAppender(consoleAppender);
@@ -95,7 +95,7 @@ class AppLogging {
}
private void configureRoot(Props props, LoggerContext loggerContext) {
- ConsoleAppender<ILoggingEvent> consoleAppender = helper.newConsoleAppender(loggerContext, "ROOT_CONSOLE", APP_PATTERN, null);
+ ConsoleAppender<ILoggingEvent> consoleAppender = helper.newConsoleAppender(loggerContext, "ROOT_CONSOLE", APP_PATTERN);
Logger rootLogger = loggerContext.getLogger(Logger.ROOT_LOGGER_NAME);
rootLogger.setLevel(Level.toLevel(props.value("sonar.app.log.level", Level.INFO.toString()), Level.INFO));
rootLogger.addAppender(consoleAppender);