Skip to content

prod 로그 레벨/프로필 drift 제거 및 SQL 바인딩 로그 차단#251

Open
Goder-0 wants to merge 1 commit into
mainfrom
feature/#238-prod-log-profile-drift
Open

prod 로그 레벨/프로필 drift 제거 및 SQL 바인딩 로그 차단#251
Goder-0 wants to merge 1 commit into
mainfrom
feature/#238-prod-log-profile-drift

Conversation

@Goder-0

@Goder-0 Goder-0 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

관련 이슈

PR 설명

Overview

  • prod 프로필에서 Hibernate SQL/bind 로그가 다시 켜지는 drift를 막도록 명시적인 OFF 설정을 추가했습니다.

Changes

  • logback-spring.xmlprod profile에 아래 로거를 OFF로 추가
  • org.hibernate.SQL
  • org.hibernate.type.descriptor.sql.BasicBinder
  • org.hibernate.orm.jdbc.bind

Notes

  • dev/default에서의 SQL 디버깅 동작은 유지하고, prod에서만 명시적으로 차단합니다.

@Goder-0 Goder-0 requested a review from ckdals4600 June 24, 2026 14:12
@github-actions

Copy link
Copy Markdown

📊 코드 커버리지 리포트

Overall Project 94.28% 🍏

There is no coverage information present for the Files changed

@ckdals4600 ckdals4600 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prod 프로필에 Hibernate SQL/bind 로거를 명시적으로 OFF 처리한 부분 잘 반영된 것 같습니다.
다만 노션에서 관리되고 있는 환경 설정 파일은 그대로라 해당 파일에 대해서도 아래와 같은 수정이 필요할 것 같습니다.

  • spring.jpa.show-sql: truefalse (이건 System.out 직출력이라 logback으로는 막히지 않습니다.)
  • logging.level.org.hibernate.SQL: debug → 제거 또는 OFF
  • logging.level.org.hibernate.orm.jdbc.bind: trace → 제거 또는 OFF

logging.levellogback-spring.xml보다 나중에 적용돼서 logback의 OFF를 덮어씁니다.
그래서 이 두 줄이 남아 있으면 logback을 아무리 막아도 prod에서 다시 적용될 우려가 있습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

prod 로그 레벨/프로필 drift 제거 및 SQL 바인딩 로그 차단

2 participants