From 311ec58b6c8627d7484240adab94da8b97df290a Mon Sep 17 00:00:00 2001 From: khee2 <21keunghee@gmail.com> Date: Wed, 12 Jun 2024 14:31:32 +0900 Subject: [PATCH] =?UTF-8?q?[chore]=20=EB=84=98=EC=96=B4=EC=98=A4=EB=8A=94?= =?UTF-8?q?=20=ED=86=A0=ED=81=B0=20log=20=EC=B0=8D=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Backend/domain/message/controller/MessageController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/SafeNet/Backend/domain/message/controller/MessageController.java b/src/main/java/com/SafeNet/Backend/domain/message/controller/MessageController.java index 597c26b..1cc69cb 100644 --- a/src/main/java/com/SafeNet/Backend/domain/message/controller/MessageController.java +++ b/src/main/java/com/SafeNet/Backend/domain/message/controller/MessageController.java @@ -43,6 +43,7 @@ public class MessageController { public void message(@RequestHeader(name = "ACCESS_TOKEN", required = false) String accessToken, MessageDto messageDto) { try { + log.debug("Received ACCESS_TOKEN: {}", accessToken); // Access Token 검증 if (accessToken != null && accessToken.startsWith("Bearer ")) { String token = accessToken.substring(7); @@ -53,7 +54,7 @@ public void message(@RequestHeader(name = "ACCESS_TOKEN", required = false) Stri throw new AccessDeniedException("Invalid or expired token"); } } else { - throw new AccessDeniedException("Missing or invalid ACCESS_TOKEN header"); + throw new AccessDeniedException("Missing or invalid ACCESS_TOKEN header!"); } } catch (Exception e) { log.error("Failed to send message: {}", e.getMessage());