summaryrefslogtreecommitdiffstats
path: root/server/sonar-search
diff options
context:
space:
mode:
authorGabor Liptak <gliptak@gmail.com>2015-06-17 13:45:37 -0400
committerGabor Liptak <gliptak@gmail.com>2015-06-17 13:45:37 -0400
commit6f7dcf0f6ad046940c37a14041e2ddd02c457776 (patch)
tree9022c22c58ff90949dc098b5866590ee56fbbdcb /server/sonar-search
parent8714a329c98b2610cf54632400e33447b7bf7448 (diff)
downloadsonarqube-6f7dcf0f6ad046940c37a14041e2ddd02c457776.tar.gz
sonarqube-6f7dcf0f6ad046940c37a14041e2ddd02c457776.zip
Cleanup warnings
Diffstat (limited to 'server/sonar-search')
-rw-r--r--server/sonar-search/src/main/java/org/sonar/search/SearchLogging.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-search/src/main/java/org/sonar/search/SearchLogging.java b/server/sonar-search/src/main/java/org/sonar/search/SearchLogging.java
index 2c2d45ad39b..bb031f8407f 100644
--- a/server/sonar-search/src/main/java/org/sonar/search/SearchLogging.java
+++ b/server/sonar-search/src/main/java/org/sonar/search/SearchLogging.java
@@ -22,7 +22,9 @@ package org.sonar.search;
import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.Logger;
import ch.qos.logback.classic.LoggerContext;
+import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.ConsoleAppender;
+
import org.sonar.process.LogbackHelper;
public class SearchLogging {
@@ -35,7 +37,7 @@ public class SearchLogging {
LoggerContext ctx = helper.getRootContext();
ctx.reset();
- ConsoleAppender consoleAppender = helper.newConsoleAppender(ctx, "CONSOLE", LOG_FORMAT);
+ ConsoleAppender<ILoggingEvent> consoleAppender = helper.newConsoleAppender(ctx, "CONSOLE", LOG_FORMAT);
Logger rootLogger = helper.configureLogger(ctx, Logger.ROOT_LOGGER_NAME, Level.INFO);
rootLogger.addAppender(consoleAppender);
return ctx;