From 285421e6caf0e0cbae3c83a9845d48800fc19bdd Mon Sep 17 00:00:00 2001 From: jimin3263 Date: Mon, 26 Aug 2024 00:47:04 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20request=20=EC=9E=84=EC=8B=9C=EB=A1=9C?= =?UTF-8?q?=EA=B9=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/api-deploy.yml | 1 + .../com/pokit/auth/interceptor/RequestLoggingInterceptor.kt | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/api-deploy.yml b/.github/workflows/api-deploy.yml index d9722d69..09e32c11 100644 --- a/.github/workflows/api-deploy.yml +++ b/.github/workflows/api-deploy.yml @@ -6,6 +6,7 @@ on: - feature/db-config - main - develop + - fix/batch-count env: DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} diff --git a/adapters/in-web/src/main/kotlin/com/pokit/auth/interceptor/RequestLoggingInterceptor.kt b/adapters/in-web/src/main/kotlin/com/pokit/auth/interceptor/RequestLoggingInterceptor.kt index 995ecf8a..d02b09c2 100644 --- a/adapters/in-web/src/main/kotlin/com/pokit/auth/interceptor/RequestLoggingInterceptor.kt +++ b/adapters/in-web/src/main/kotlin/com/pokit/auth/interceptor/RequestLoggingInterceptor.kt @@ -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 } }