You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2020/02/28 17:29:49 UTC
[tomcat] branch master updated: Fix use of log valve API
This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push:
new a08f15a Fix use of log valve API
a08f15a is described below
commit a08f15a979021fd39b85d7882d6fe3b323466bdb
Author: remm <re...@apache.org>
AuthorDate: Fri Feb 28 18:29:33 2020 +0100
Fix use of log valve API
---
test/org/apache/catalina/valves/TesterAccessLogValve.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/org/apache/catalina/valves/TesterAccessLogValve.java b/test/org/apache/catalina/valves/TesterAccessLogValve.java
index 6a40ee2..b09a99e 100644
--- a/test/org/apache/catalina/valves/TesterAccessLogValve.java
+++ b/test/org/apache/catalina/valves/TesterAccessLogValve.java
@@ -19,6 +19,7 @@ package org.apache.catalina.valves;
import java.io.IOException;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
+import java.util.concurrent.TimeUnit;
import jakarta.servlet.ServletException;
@@ -45,7 +46,7 @@ public class TesterAccessLogValve extends ValveBase implements AccessLog {
@Override
public void log(Request request, Response response, long time) {
entries.add(new Entry(request.getRequestURI(), response.getStatus(),
- time));
+ TimeUnit.NANOSECONDS.toMillis(time)));
}
@Override
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org