From a5474345eb6fe194b00167ce832d99b6cf329f80 Mon Sep 17 00:00:00 2001 From: Woo Joo Chae Date: Mon, 25 Sep 2023 19:56:41 +0900 Subject: [PATCH] [BE] FIX: Intra API Error log added --- .../java/org/ftclub/cabinet/auth/service/FtApiManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/org/ftclub/cabinet/auth/service/FtApiManager.java b/backend/src/main/java/org/ftclub/cabinet/auth/service/FtApiManager.java index fc89d5bd6..99456454a 100644 --- a/backend/src/main/java/org/ftclub/cabinet/auth/service/FtApiManager.java +++ b/backend/src/main/java/org/ftclub/cabinet/auth/service/FtApiManager.java @@ -46,10 +46,12 @@ public void issueAccessToken() { return objectMapper.readTree(response) .get(ftApiProperties.getAccessTokenName()).asText(); } catch (Exception e) { - throw new RuntimeException(); + log.error("mapping error {}",e.getMessage()); + throw new ServiceException(ExceptionStatus.EXTERNAL_API_EXCEPTION); } }) .onErrorResume(e -> { + log.error("ErrorResumed {}",e.getMessage()); throw new ServiceException(ExceptionStatus.OAUTH_BAD_GATEWAY); }) .block();