aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Context.java
diff options
context:
space:
mode:
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);