From f94f4ea8f327a6d89cf3b484296bd4d97f2dde9f Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 23 Aug 2013 00:25:12 +1200 Subject: Workaround for logging bug (fix #362) --- src/org/traccar/Main.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/org/traccar/Main.java b/src/org/traccar/Main.java index 144ad1ec7..0e29dcb59 100644 --- a/src/org/traccar/Main.java +++ b/src/org/traccar/Main.java @@ -20,6 +20,8 @@ import java.lang.management.MemoryMXBean; import java.lang.management.OperatingSystemMXBean; import java.lang.management.RuntimeMXBean; import java.util.Locale; +import org.jboss.netty.logging.InternalLoggerFactory; +import org.jboss.netty.logging.Log4JLoggerFactory; import org.traccar.helper.Log; public class Main { @@ -47,6 +49,13 @@ public class Main { } } + /** + * Workaround for "Bug 745866 - (EDG-45) Possible netty logging config problem" + */ + static { + InternalLoggerFactory.setDefaultFactory(new Log4JLoggerFactory()); + } + public static void main(String[] args) throws Exception { Locale.setDefault(Locale.ENGLISH); -- cgit v1.2.3