Skip to content

Commit 2f5541e

Browse files
authored
Merge pull request #319 from prgrms-web-devcourse-final-project/chore/33-infra
Chore/33 infra
2 parents c78b000 + d1a9d4d commit 2f5541e

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
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 # 커넥션 풀 상태만 간결하게

backend/src/main/resources/application.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ spring:
6161
jdbc:
6262
initialize-schema: never
6363

64-
jpa:
65-
show-sql: true
66-
hibernate:
67-
ddl-auto: ${SPRING_JPA_HIBERNATE_DDL_AUTO}
64+
# jpa:
65+
# show-sql: true
66+
# hibernate:
67+
# ddl-auto: ${SPRING_JPA_HIBERNATE_DDL_AUTO}
6868

6969
properties:
7070
hibernate:

0 commit comments

Comments
 (0)