diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-15 18:16:21 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-15 18:16:21 +1200 |
commit | fc1ef8342339e72e5d4a88ac953dfaafc3cc3b63 (patch) | |
tree | 76aa5439b98e5e182164e0baf3b64add81af187e /src/org/traccar/helper/Log.java | |
parent | dc3559a9cc49206e87f26349b8f8a41398f299b5 (diff) | |
download | trackermap-server-fc1ef8342339e72e5d4a88ac953dfaafc3cc3b63.tar.gz trackermap-server-fc1ef8342339e72e5d4a88ac953dfaafc3cc3b63.tar.bz2 trackermap-server-fc1ef8342339e72e5d4a88ac953dfaafc3cc3b63.zip |
Fix logging level issues
Diffstat (limited to 'src/org/traccar/helper/Log.java')
-rw-r--r-- | src/org/traccar/helper/Log.java | 5 |
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); } |