aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/utils/log/DefaultProfiler.java6
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/utils/log/LogbackLogger.java2
2 files changed, 1 insertions, 7 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/log/DefaultProfiler.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/log/DefaultProfiler.java
index e72bf231c8b..cfeb9b29604 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/log/DefaultProfiler.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/log/DefaultProfiler.java
@@ -36,7 +36,6 @@ class DefaultProfiler extends Profiler {
private long startTime = 0L;
private String startMessage = null;
- private LoggerLevel startLevel = null;
public DefaultProfiler(BaseLogger logger) {
this.logger = logger;
@@ -56,7 +55,6 @@ class DefaultProfiler extends Profiler {
public Profiler start() {
this.startTime = System2.INSTANCE.now();
this.startMessage = null;
- this.startLevel = null;
return this;
}
@@ -64,7 +62,6 @@ class DefaultProfiler extends Profiler {
public Profiler startTrace(String message) {
this.startTime = System2.INSTANCE.now();
this.startMessage = message;
- this.startLevel = LoggerLevel.TRACE;
StringBuilder sb = new StringBuilder();
sb.append(message);
appendContext(sb);
@@ -76,7 +73,6 @@ class DefaultProfiler extends Profiler {
public Profiler startDebug(String message) {
this.startTime = System2.INSTANCE.now();
this.startMessage = message;
- this.startLevel = LoggerLevel.DEBUG;
StringBuilder sb = new StringBuilder();
sb.append(message);
appendContext(sb);
@@ -88,7 +84,6 @@ class DefaultProfiler extends Profiler {
public Profiler startInfo(String message) {
this.startTime = System2.INSTANCE.now();
this.startMessage = message;
- this.startLevel = LoggerLevel.INFO;
StringBuilder sb = new StringBuilder();
sb.append(message);
appendContext(sb);
@@ -154,7 +149,6 @@ class DefaultProfiler extends Profiler {
logger.log(level, sb.toString());
startTime = 0L;
startMessage = null;
- startLevel = null;
context.clear();
}
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/log/LogbackLogger.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/log/LogbackLogger.java
index 3d4c8aa732c..de1727a5be8 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/log/LogbackLogger.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/log/LogbackLogger.java
@@ -29,7 +29,7 @@ import javax.annotation.Nullable;
*/
class LogbackLogger extends BaseLogger {
- private final transient ch.qos.logback.classic.Logger logback;
+ private final ch.qos.logback.classic.Logger logback;
LogbackLogger(ch.qos.logback.classic.Logger logback) {
this.logback = logback;