aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-10-04 10:30:40 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-10-04 10:30:40 +1300
commit97551c24bd063d2d350eac141ce5cfbf94927187 (patch)
tree54393fbff41db2ce8317fc56e6901ff88e71a32a
parent5449930102d9a1dc6ef6bb09f6bcbdcb2f8bf150 (diff)
downloadtraccar-server-97551c24bd063d2d350eac141ce5cfbf94927187.tar.gz
traccar-server-97551c24bd063d2d350eac141ce5cfbf94927187.tar.bz2
traccar-server-97551c24bd063d2d350eac141ce5cfbf94927187.zip
Disable JVM logs (fix #4083)
-rw-r--r--src/org/traccar/helper/Log.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/org/traccar/helper/Log.java b/src/org/traccar/helper/Log.java
index fa732dc9c..9bc86b137 100644
--- a/src/org/traccar/helper/Log.java
+++ b/src/org/traccar/helper/Log.java
@@ -171,6 +171,9 @@ public final class Log {
handler.setLevel(level);
rootLogger.addHandler(handler);
+
+ Logger.getLogger("sun").setLevel(Level.OFF);
+ Logger.getLogger("java").setLevel(Level.OFF);
}
public static String exceptionStack(Throwable exception) {