diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-08-20 20:18:21 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-08-20 20:18:21 +1200 |
commit | 569ee68a9219a33c2a4bdd2bc43dd4f8e8cdfed4 (patch) | |
tree | 4e656222dd63b98d19189de24146d70610d04a86 /src/org/traccar/ServerManager.java | |
parent | f03fbcc96e804c232a873d63eaf55060685ad3da (diff) | |
download | trackermap-server-569ee68a9219a33c2a4bdd2bc43dd4f8e8cdfed4.tar.gz trackermap-server-569ee68a9219a33c2a4bdd2bc43dd4f8e8cdfed4.tar.bz2 trackermap-server-569ee68a9219a33c2a4bdd2bc43dd4f8e8cdfed4.zip |
Fix packet logging
Diffstat (limited to 'src/org/traccar/ServerManager.java')
-rw-r--r-- | src/org/traccar/ServerManager.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java index e478c6f2f..95f8c7b58 100644 --- a/src/org/traccar/ServerManager.java +++ b/src/org/traccar/ServerManager.java @@ -93,7 +93,12 @@ public class ServerManager { dataManager = new DatabaseDataManager(properties); - Log.setupLogger(properties); + // Init logger + loggerEnabled = Boolean.valueOf(properties.getProperty("logger.enable")); + if (loggerEnabled) { + Log.setupLogger(properties); + } + initGeocoder(properties); initXexunServer("xexun"); @@ -151,7 +156,7 @@ public class ServerManager { initGatorServer("gator"); initNoranServer("noran"); initM2mServer("m2m"); - + // Initialize web server if (Boolean.valueOf(properties.getProperty("http.enable"))) { webServer = new WebServer(properties); |