Skip to content

Commit d1a9d4d

Browse files
committed
chore[infra]: sql 로그 줄이기
1 parent 484ef47 commit d1a9d4d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

backend/src/main/resources/application-prod.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ spring:
1717
connection-timeout: 30000
1818
max-lifetime: 1800000 # MySQL wait_timeout(기본 28800)보다 짧게
1919
jpa:
20+
show-sql: false
2021
open-in-view: false # 프로덕션 권장
2122
hibernate:
2223
ddl-auto: ${PROD_JPA_HIBERNATE_DDL_AUTO} # 운영 DB는 보통 validate (또는 none)
@@ -88,4 +89,12 @@ sentry:
8889
dsn: ${PROD_SENTRY_DSN}
8990
environment: "prod"
9091
release: "[email protected]"
91-
send-default-pii: true
92+
send-default-pii: true
93+
94+
logging:
95+
level:
96+
org.hibernate.SQL: WARN # SQL 문 로그 줄이기
97+
org.hibernate.orm.jdbc.bind: OFF # 바인딩 파라미터 로그 끔(Hibernate 6)
98+
org.hibernate.type.descriptor.jdbc: OFF
99+
org.springframework.jdbc.core: ERROR # JdbcTemplate 디버그 억제
100+
com.zaxxer.hikari: INFO # 커넥션 풀 상태만 간결하게

0 commit comments

Comments
 (0)