Skip to content

Commit 6f6a192

Browse files
committed
refactor(Convention): 변수명 통일
1 parent c0a511f commit 6f6a192

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/page/clab/api/global/util/ApiLogger.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ public void logRequest(HttpServletRequest request, HttpServletResponse response,
2020
String fullUrl = queryString == null ? requestUrl : requestUrl + "?" + queryString;
2121

2222
String httpMethod = request.getMethod();
23-
int httpStatus = response.getStatus();
23+
int statusCode = response.getStatus();
2424

25-
log.info("[{}:{}] {} {} {} {}", clientIpAddress, id, fullUrl, httpMethod, httpStatus, message);
25+
log.info("[{}:{}] {} {} {} {}", clientIpAddress, id, fullUrl, httpMethod, statusCode, message);
2626
}
2727

2828
public void logRequestDuration(HttpServletRequest request, HttpServletResponse response, Exception ex) {
@@ -35,16 +35,16 @@ public void logRequestDuration(HttpServletRequest request, HttpServletResponse r
3535
String fullUrl = queryString == null ? requestUrl : requestUrl + "?" + queryString;
3636

3737
String httpMethod = request.getMethod();
38-
int httpStatus = response.getStatus();
38+
int statusCode = response.getStatus();
3939

4040
long startTime = (Long) request.getAttribute("startTime");
4141
long endTime = System.currentTimeMillis();
4242
long duration = endTime - startTime;
4343

4444
if (ex == null) {
45-
log.info("[{}:{}] {} {} {} {}ms", clientIpAddress, id, fullUrl, httpMethod, httpStatus, duration);
45+
log.info("[{}:{}] {} {} {} {}ms", clientIpAddress, id, fullUrl, httpMethod, statusCode, duration);
4646
} else {
47-
log.error("[{}:{}] {} {} {} {}ms, Exception: {}", clientIpAddress, id, fullUrl, httpMethod, httpStatus, duration, ex.getMessage());
47+
log.error("[{}:{}] {} {} {} {}ms, Exception: {}", clientIpAddress, id, fullUrl, httpMethod, statusCode, duration, ex.getMessage());
4848
}
4949
}
5050
}

0 commit comments

Comments
 (0)