aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Context.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-10-24 08:50:43 +0400
committerAnton Tananaev <anton.tananaev@gmail.com>2018-10-24 08:50:43 +0400
commit49d57451db0b9860f40b2ba53bc96069bb86261f (patch)
tree48d7548f5065740437e9c338af62e665d6717ed2 /src/org/traccar/Context.java
parent39e0ee849d74a04b41e2d22665d03b63fb6b0889 (diff)
downloadtrackermap-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.java9
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);