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.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java
index 9a8bb97a9..f7bc18d1d 100644
--- a/src/org/traccar/Context.java
+++ b/src/org/traccar/Context.java
@@ -340,14 +340,10 @@ public final class Context {
}
}
- public static void init(String[] arguments) throws Exception {
+ public static void init(String configFile) throws Exception {
config = new Config();
- if (arguments.length <= 0) {
- throw new RuntimeException("Configuration file is not provided");
- }
-
- config.load(arguments[0]);
+ config.load(configFile);
loggerEnabled = config.getBoolean("logger.enable");
if (loggerEnabled) {