Skip to content

Commit 5ee9e4e

Browse files
committed
Instant is immutable
As a result, the end of the request was always the beginning. BZ69932, regression from 11.0.12
1 parent e9f82d0 commit 5ee9e4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/org/apache/catalina/valves/AbstractAccessLogValve.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ public void addElement(CharArrayWriter buf, Request request, Response response,
10611061
Instant requestStartInstant = Instant.from(request.getCoyoteRequest().getStartInstant());
10621062
long frac;
10631063
if (!usesBegin) {
1064-
requestStartInstant.plusNanos(time);
1064+
requestStartInstant = requestStartInstant.plusNanos(time);
10651065
}
10661066
switch (type) {
10671067
case CLF:

0 commit comments

Comments
 (0)