Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correcting request time in http access logs #102

Merged
merged 13 commits into from
Aug 21, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ public class AccessLogGrpcFilter<R extends GeneratedMessageV3, S extends Generat

public AccessLogGrpcFilter() {
accessLogContextBuilder = AccessLogContext.builder();
accessLogContextBuilder.requestTime(System.currentTimeMillis());
startTime = System.currentTimeMillis();
accessLogContextBuilder.requestTime(startTime);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ public class AccessLogHttpFilter extends HttpFilter implements Logging {

public AccessLogHttpFilter() {
accessLogContextBuilder = AccessLogContext.builder();
accessLogContextBuilder.requestTime(System.currentTimeMillis());
startTime = System.currentTimeMillis();
accessLogContextBuilder.requestTime(startTime);
}

public static void setFormat(String format) {
Expand Down