Skip to content

Commit 5b087d6

Browse files
author
yangjiaqi
committed
fix code style
1 parent 31b22a9 commit 5b087d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/filter/AccessLogFilter.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private String join(String path1, String path2) {
7979
return String.join(DELIMITER, path1, path2);
8080
}
8181

82-
private String normalizePath(ContainerRequestContext requestContext) {
82+
private static String normalizePath(ContainerRequestContext requestContext) {
8383
// Replace variable parts of the path with placeholders
8484
String requestPath = requestContext.getUriInfo().getPath();
8585
// get uri params
@@ -96,7 +96,7 @@ private String normalizePath(ContainerRequestContext requestContext) {
9696
newPath = newPath.replace(value, key);
9797
}
9898

99-
LOG.trace("Original Path: {} New Path: {}", requestPath, newPath);
99+
LOG.trace("normalize path, original path: '{}', new path: '{}'", requestPath, newPath);
100100
return newPath;
101101
}
102102

@@ -123,7 +123,7 @@ public void filter(ContainerRequestContext requestContext,
123123
if (statusOk(responseContext.getStatus())) {
124124
MetricsUtil.registerCounter(join(metricsName, METRICS_PATH_SUCCESS_COUNTER)).inc();
125125
} else {
126-
//TODO: The return codes for compatibility need to be further detailed.
126+
// TODO: The return codes for compatibility need to be further detailed.
127127
LOG.trace("Failed Status: {}", status);
128128
if (status != 500 && status != 415) {
129129
MetricsUtil.registerCounter(join(metricsName, METRICS_PATH_FAILED_COUNTER)).inc();

0 commit comments

Comments
 (0)