diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-06 19:19:48 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-06 19:19:48 -0700 |
commit | 669bdccecff50eaca46c815598df092ad0fe143d (patch) | |
tree | 29cd5d98c171dce9983b13e24263863fd56b4dca /src | |
parent | 59bbaa37656d1aacd7df21d70ec5bfa85cf98608 (diff) | |
download | trackermap-server-669bdccecff50eaca46c815598df092ad0fe143d.tar.gz trackermap-server-669bdccecff50eaca46c815598df092ad0fe143d.tar.bz2 trackermap-server-669bdccecff50eaca46c815598df092ad0fe143d.zip |
Simplify logs config
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/traccar/config/Keys.java | 7 | ||||
-rw-r--r-- | src/main/java/org/traccar/web/WebServer.java | 2 |
2 files changed, 1 insertions, 8 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java index f5370874d..ba576397b 100644 --- a/src/main/java/org/traccar/config/Keys.java +++ b/src/main/java/org/traccar/config/Keys.java @@ -1199,13 +1199,6 @@ public final class Keys { Collections.singletonList(KeyType.GLOBAL)); /** - * Enable Jetty Request Log. - */ - public static final ConfigKey<Boolean> WEB_REQUEST_LOG_ENABLE = new ConfigKey<>( - "web.requestLog.enable", - Collections.singletonList(KeyType.GLOBAL)); - - /** * Jetty Request Log Path. * The path must include the string "yyyy_mm_dd", which is replaced with the actual date when creating and rolling * over the file. diff --git a/src/main/java/org/traccar/web/WebServer.java b/src/main/java/org/traccar/web/WebServer.java index 9af9fd33a..06676fb41 100644 --- a/src/main/java/org/traccar/web/WebServer.java +++ b/src/main/java/org/traccar/web/WebServer.java @@ -118,7 +118,7 @@ public class WebServer implements LifecycleObject { handlers.addHandler(new GzipHandler()); server.setHandler(handlers); - if (config.getBoolean(Keys.WEB_REQUEST_LOG_ENABLE)) { + if (config.hasKey(Keys.WEB_REQUEST_LOG_PATH)) { RequestLogWriter logWriter = new RequestLogWriter(config.getString(Keys.WEB_REQUEST_LOG_PATH)); logWriter.setAppend(true); logWriter.setRetainDays(config.getInteger(Keys.WEB_REQUEST_LOG_RETAIN_DAYS)); |