diff options
Diffstat (limited to 'src/org/traccar/helper')
-rw-r--r-- | src/org/traccar/helper/Log.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/org/traccar/helper/Log.java b/src/org/traccar/helper/Log.java index 9bc86b137..7a1faf8bb 100644 --- a/src/org/traccar/helper/Log.java +++ b/src/org/traccar/helper/Log.java @@ -169,11 +169,9 @@ public final class Log { Level level = Level.parse(config.getString("logger.level").toUpperCase()); rootLogger.setLevel(level); handler.setLevel(level); + handler.setFilter(record -> record != null && !record.getLoggerName().startsWith("sun")); rootLogger.addHandler(handler); - - Logger.getLogger("sun").setLevel(Level.OFF); - Logger.getLogger("java").setLevel(Level.OFF); } public static String exceptionStack(Throwable exception) { |