Skip to content

Commit

Permalink
feat: request 임시로깅
Browse files Browse the repository at this point in the history
  • Loading branch information
jimin3263 committed Aug 25, 2024
1 parent 78ab5bb commit 285421e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/api-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- feature/db-config
- main
- develop
- fix/batch-count

env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ class RequestLoggingInterceptor : HandlerInterceptor {
handler: Any
): Boolean {
val uri = request.requestURI
logger.debug { "[Requested URI] $uri" }
val params = request.parameterMap.map { (key, value) -> "$key=${value.joinToString(",")}" }.joinToString("&")
logger.info{"Requested URI: $uri"}
if (params.isNotEmpty()) {
logger.info{"Request Parameters: $params"}
}
return true
}
}

0 comments on commit 285421e

Please sign in to comment.