diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-10-24 08:50:43 +0400 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-10-24 08:50:43 +0400 |
commit | 49d57451db0b9860f40b2ba53bc96069bb86261f (patch) | |
tree | 48d7548f5065740437e9c338af62e665d6717ed2 /src/org/traccar/Context.java | |
parent | 39e0ee849d74a04b41e2d22665d03b63fb6b0889 (diff) | |
download | trackermap-server-49d57451db0b9860f40b2ba53bc96069bb86261f.tar.gz trackermap-server-49d57451db0b9860f40b2ba53bc96069bb86261f.tar.bz2 trackermap-server-49d57451db0b9860f40b2ba53bc96069bb86261f.zip |
Default logging on config errors
Diffstat (limited to 'src/org/traccar/Context.java')
-rw-r--r-- | src/org/traccar/Context.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java index 51c67bd0a..5b22120d7 100644 --- a/src/org/traccar/Context.java +++ b/src/org/traccar/Context.java @@ -359,8 +359,13 @@ public final class Context { public static void init(String configFile) throws Exception { - config = new Config(); - config.load(configFile); + try { + config = new Config(); + config.load(configFile); + } catch (Exception e) { + Log.setupDefaultLogger(); + throw e; + } if (config.getBoolean("logger.enable")) { Log.setupLogger(config); |