@@ -79,7 +79,7 @@ private String join(String path1, String path2) {
79
79
return String .join (DELIMITER , path1 , path2 );
80
80
}
81
81
82
- private String normalizePath (ContainerRequestContext requestContext ) {
82
+ private static String normalizePath (ContainerRequestContext requestContext ) {
83
83
// Replace variable parts of the path with placeholders
84
84
String requestPath = requestContext .getUriInfo ().getPath ();
85
85
// get uri params
@@ -96,7 +96,7 @@ private String normalizePath(ContainerRequestContext requestContext) {
96
96
newPath = newPath .replace (value , key );
97
97
}
98
98
99
- LOG .trace ("Original Path: {} New Path: {} " , requestPath , newPath );
99
+ LOG .trace ("normalize path, original path: '{}', new path: '{}' " , requestPath , newPath );
100
100
return newPath ;
101
101
}
102
102
@@ -123,7 +123,7 @@ public void filter(ContainerRequestContext requestContext,
123
123
if (statusOk (responseContext .getStatus ())) {
124
124
MetricsUtil .registerCounter (join (metricsName , METRICS_PATH_SUCCESS_COUNTER )).inc ();
125
125
} 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.
127
127
LOG .trace ("Failed Status: {}" , status );
128
128
if (status != 500 && status != 415 ) {
129
129
MetricsUtil .registerCounter (join (metricsName , METRICS_PATH_FAILED_COUNTER )).inc ();
0 commit comments