Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into fix-event-message
Browse files Browse the repository at this point in the history
  • Loading branch information
dojinyou authored Apr 19, 2024
2 parents 58ccfa3 + 8abeb3f commit 02afa21
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ class UnknownExceptionHandler {
): ErrorResponse {
val requestMethod: String = request.method
val requestUrl: String = request.requestURI
val queryString = if (request.queryString.isNotBlank()) "?${request.queryString}" else ""
val clientIp: String = request.getHeader("X-Forwarded-For") ?: request.remoteAddr

logger.warn { "NoResourceFoundException: $requestMethod $requestUrl from $clientIp" }
logger.warn { "NoResourceFoundException: $requestMethod $requestUrl${queryString} from $clientIp" }

return ErrorResponse(
exceptionCode = SystemExceptionType.NOT_FOUND.code,
Expand Down

0 comments on commit 02afa21

Please sign in to comment.