diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-08-23 00:25:12 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-08-23 00:25:12 +1200 |
commit | f94f4ea8f327a6d89cf3b484296bd4d97f2dde9f (patch) | |
tree | 34f31df2e56c14531420924072edc81e1c9e1cf9 /src | |
parent | 243ac7b40aa7c40749ea781100f4709d26981e6f (diff) | |
download | trackermap-server-f94f4ea8f327a6d89cf3b484296bd4d97f2dde9f.tar.gz trackermap-server-f94f4ea8f327a6d89cf3b484296bd4d97f2dde9f.tar.bz2 trackermap-server-f94f4ea8f327a6d89cf3b484296bd4d97f2dde9f.zip |
Workaround for logging bug (fix #362)
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/Main.java | 9 |
1 files changed, 9 insertions, 0 deletions
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); |