From e69c6df52823223113f8ff5268aa867b57972256 Mon Sep 17 00:00:00 2001 From: EunjiShin Date: Thu, 4 Jul 2024 00:50:35 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=83=81=EC=88=98=EB=AA=85=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/depromeet/spot/jpa/common/P6spySqlFormatter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infrastructure/jpa/src/main/java/org/depromeet/spot/jpa/common/P6spySqlFormatter.java b/infrastructure/jpa/src/main/java/org/depromeet/spot/jpa/common/P6spySqlFormatter.java index c81c9dd4..67f75a3b 100644 --- a/infrastructure/jpa/src/main/java/org/depromeet/spot/jpa/common/P6spySqlFormatter.java +++ b/infrastructure/jpa/src/main/java/org/depromeet/spot/jpa/common/P6spySqlFormatter.java @@ -11,7 +11,7 @@ @Configuration public class P6spySqlFormatter implements MessageFormattingStrategy { - private static String JPA_PACKAGE = "org.depromeet.spot"; + private static String ROOT_PACKAGE = "org.depromeet.spot"; private static String P6SPY_PACKAGE = "org.depromeet.spot.jpa.common.P6spySqlFormatter"; @Override @@ -61,7 +61,7 @@ private String filterStack() { for (StackTraceElement element : stackTraces) { String trace = element.toString(); - if (trace.startsWith(JPA_PACKAGE) && !trace.contains(P6SPY_PACKAGE)) { + if (trace.startsWith(ROOT_PACKAGE) && !trace.contains(P6SPY_PACKAGE)) { sb.append("\n\t\t").append(order++).append(".").append(trace); } }