aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/web/WebServer.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-12-10 14:04:52 -0800
committerAnton Tananaev <anton@traccar.org>2023-12-10 14:04:52 -0800
commit87b2f36a487edc54cf4d8a1e27ce338f67bf8d55 (patch)
tree1403f5e5f34eaa637628118d31eaf845dd581b2e /src/main/java/org/traccar/web/WebServer.java
parentf26a894807be6c2ea06e28d3ce33d7aea34a1ade (diff)
downloadtrackermap-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.java4
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));
}
}