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/main/java/org/traccar/web | |
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/main/java/org/traccar/web')
-rw-r--r-- | src/main/java/org/traccar/web/WebServer.java | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |