aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-09-15 18:16:21 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-09-15 18:16:21 +1200
commitfc1ef8342339e72e5d4a88ac953dfaafc3cc3b63 (patch)
tree76aa5439b98e5e182164e0baf3b64add81af187e /src/org/traccar/helper
parentdc3559a9cc49206e87f26349b8f8a41398f299b5 (diff)
downloadtrackermap-server-fc1ef8342339e72e5d4a88ac953dfaafc3cc3b63.tar.gz
trackermap-server-fc1ef8342339e72e5d4a88ac953dfaafc3cc3b63.tar.bz2
trackermap-server-fc1ef8342339e72e5d4a88ac953dfaafc3cc3b63.zip
Fix logging level issues
Diffstat (limited to 'src/org/traccar/helper')
-rw-r--r--src/org/traccar/helper/Log.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/org/traccar/helper/Log.java b/src/org/traccar/helper/Log.java
index d606c7355..890026b0c 100644
--- a/src/org/traccar/helper/Log.java
+++ b/src/org/traccar/helper/Log.java
@@ -159,7 +159,10 @@ public final class Log {
}
handler.setFormatter(new LogFormatter(config.getBoolean("logger.fullStackTraces")));
- handler.setLevel(Level.parse(config.getString("logger.level").toUpperCase()));
+
+ Level level = Level.parse(config.getString("logger.level").toUpperCase());
+ rootLogger.setLevel(level);
+ handler.setLevel(level);
rootLogger.addHandler(handler);
}