From 0d236005f1461e39c793689af2b49b4cbfc97176 Mon Sep 17 00:00:00 2001 From: Ssuamje Date: Fri, 15 Sep 2023 16:57:11 +0900 Subject: [PATCH] [BE] FEAT: profile prod added --- .../main/java/org/ftclub/cabinet/log/AdminApiLogAspect.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/org/ftclub/cabinet/log/AdminApiLogAspect.java b/backend/src/main/java/org/ftclub/cabinet/log/AdminApiLogAspect.java index d80cf2177..d644c35e2 100644 --- a/backend/src/main/java/org/ftclub/cabinet/log/AdminApiLogAspect.java +++ b/backend/src/main/java/org/ftclub/cabinet/log/AdminApiLogAspect.java @@ -13,6 +13,7 @@ import org.ftclub.cabinet.auth.domain.CookieManager; import org.ftclub.cabinet.auth.domain.TokenValidator; import org.ftclub.cabinet.config.JwtProperties; +import org.springframework.context.annotation.Profile; import org.springframework.core.DefaultParameterNameDiscoverer; import org.springframework.core.ParameterNameDiscoverer; import org.springframework.stereotype.Component; @@ -29,6 +30,7 @@ @Slf4j @Aspect @Component +@Profile("prod") @RequiredArgsConstructor public class AdminApiLogAspect { @@ -100,7 +102,7 @@ private void sendLogMessage(JoinPoint joinPoint, String responseString) } // 결과 String message = sb.append(responseString).toString(); - + logParser.parseToDiscordAlarmMessage(message); log.info(message); }