From ef1d6beba7a3b29114d6b28aa299c964b21f293b Mon Sep 17 00:00:00 2001 From: 1223v <1223v@naver.com> Date: Thu, 23 May 2024 02:55:17 +0900 Subject: [PATCH] =?UTF-8?q?Chore:=20log=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../readyverydemo/security/jwt/service/JwtServiceImpl.java | 2 +- .../security/oauth2/handler/OAuth2LoginFailureHandler.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/readyvery/readyverydemo/security/jwt/service/JwtServiceImpl.java b/src/main/java/com/readyvery/readyverydemo/security/jwt/service/JwtServiceImpl.java index 78c04c6..ce1416e 100644 --- a/src/main/java/com/readyvery/readyverydemo/security/jwt/service/JwtServiceImpl.java +++ b/src/main/java/com/readyvery/readyverydemo/security/jwt/service/JwtServiceImpl.java @@ -115,7 +115,7 @@ public boolean isTokenValid(String token) { JWT.require(jwtConfig.getAlgorithm()).build().verify(token); return true; } catch (Exception e) { - + log.error("유효하지 않은 토큰입니다. {}", e.getMessage()); return false; } } diff --git a/src/main/java/com/readyvery/readyverydemo/security/oauth2/handler/OAuth2LoginFailureHandler.java b/src/main/java/com/readyvery/readyverydemo/security/oauth2/handler/OAuth2LoginFailureHandler.java index e1e5964..dd747ff 100644 --- a/src/main/java/com/readyvery/readyverydemo/security/oauth2/handler/OAuth2LoginFailureHandler.java +++ b/src/main/java/com/readyvery/readyverydemo/security/oauth2/handler/OAuth2LoginFailureHandler.java @@ -20,7 +20,7 @@ public void onAuthenticationFailure(HttpServletRequest request, HttpServletRespo ServletException { response.setStatus(HttpServletResponse.SC_BAD_REQUEST); response.getWriter().write("소셜 로그인 실패! 서버 로그를 확인해주세요."); - + log.info("소셜 로그인에 실패했습니다. 에러 메시지 : {}", exception.getMessage()); } }