diff options
author | Anton Tananaev <anton@traccar.org> | 2023-12-10 14:04:52 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-12-10 14:04:52 -0800 |
commit | 87b2f36a487edc54cf4d8a1e27ce338f67bf8d55 (patch) | |
tree | 1403f5e5f34eaa637628118d31eaf845dd581b2e /src/main/java/org/traccar/web/WebServer.java | |
parent | f26a894807be6c2ea06e28d3ce33d7aea34a1ade (diff) | |
download | trackermap-server-87b2f36a487edc54cf4d8a1e27ce338f67bf8d55.tar.gz trackermap-server-87b2f36a487edc54cf4d8a1e27ce338f67bf8d55.tar.bz2 trackermap-server-87b2f36a487edc54cf4d8a1e27ce338f67bf8d55.zip |
Include user id in web logs
Diffstat (limited to 'src/main/java/org/traccar/web/WebServer.java')
-rw-r--r-- | src/main/java/org/traccar/web/WebServer.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/web/WebServer.java b/src/main/java/org/traccar/web/WebServer.java index 5f27f7662..4759942b1 100644 --- a/src/main/java/org/traccar/web/WebServer.java +++ b/src/main/java/org/traccar/web/WebServer.java @@ -21,7 +21,6 @@ import org.eclipse.jetty.http.HttpCookie; import org.eclipse.jetty.http.HttpMethod; import org.eclipse.jetty.http.HttpStatus; import org.eclipse.jetty.proxy.AsyncProxyServlet; -import org.eclipse.jetty.server.CustomRequestLog; import org.eclipse.jetty.server.Request; import org.eclipse.jetty.server.RequestLogWriter; import org.eclipse.jetty.server.Server; @@ -115,8 +114,7 @@ public class WebServer implements LifecycleObject { RequestLogWriter logWriter = new RequestLogWriter(config.getString(Keys.WEB_REQUEST_LOG_PATH)); logWriter.setAppend(true); logWriter.setRetainDays(config.getInteger(Keys.WEB_REQUEST_LOG_RETAIN_DAYS)); - CustomRequestLog requestLog = new CustomRequestLog(logWriter, CustomRequestLog.NCSA_FORMAT); - server.setRequestLog(requestLog); + server.setRequestLog(new WebRequestLog(logWriter)); } } |