aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <atananaev@lyft.com>2020-12-29 12:28:50 -0800
committerAnton Tananaev <atananaev@lyft.com>2020-12-29 12:28:50 -0800
commitfd2f021ca0655424322a8f06ee5e91ac6641d044 (patch)
tree8232789afdebbe830cdc0e71f0cf3c6be49de1b9 /src
parent0519e0308c0ce6a012654b41fb331478cad81c74 (diff)
downloadtrackermap-server-fd2f021ca0655424322a8f06ee5e91ac6641d044.tar.gz
trackermap-server-fd2f021ca0655424322a8f06ee5e91ac6641d044.tar.bz2
trackermap-server-fd2f021ca0655424322a8f06ee5e91ac6641d044.zip
Reduce number of keys
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/Context.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/java/org/traccar/Context.java b/src/main/java/org/traccar/Context.java
index 3614497af..e09504ecc 100644
--- a/src/main/java/org/traccar/Context.java
+++ b/src/main/java/org/traccar/Context.java
@@ -274,16 +274,13 @@ public final class Context {
try {
config = new Config(configFile);
+ Log.setupLogger(config);
} catch (Exception e) {
config = new Config();
Log.setupDefaultLogger();
throw e;
}
- if (config.getBoolean("logger.enable")) {
- Log.setupLogger(config);
- }
-
objectMapper = new ObjectMapper();
objectMapper.registerModule(new SanitizerModule());
objectMapper.registerModule(new JSR353Module());
@@ -299,7 +296,7 @@ public final class Context {
dataManager = new DataManager(config);
}
- if (config.getBoolean("ldap.enable")) {
+ if (config.hasKey(Keys.LDAP_URL)) {
ldapProvider = new LdapProvider(config);
}