Skip to content

Commit

Permalink
bug: 배포 환경에서 잡다한 로그는 안나오게 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kanguk01 committed Nov 13, 2024
1 parent fa87b44 commit 33e6318
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
http
.csrf(csrf -> csrf.disable())
.authorizeHttpRequests(auth -> auth
.requestMatchers("/error").permitAll()
.anyRequest().permitAll()
)
.oauth2Login(oauth2 -> oauth2
Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ spring:
registration:
kakao:
redirect-uri: http://localhost:8080/login/oauth2/code/kakao

logging:
level:
org.springframework.security: TRACE
org.hibernate.engine.internal.StatisticalLoggingSessionEventListener: OFF
5 changes: 5 additions & 0 deletions src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ spring:
registration:
kakao:
redirect-uri: https://api.splanet.co.kr/login/oauth2/code/kakao

logging:
level:
org.springframework.security: INFO
org.hibernate.engine.internal.StatisticalLoggingSessionEventListener: OFF
6 changes: 0 additions & 6 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ spring:
scope: profile_nickname, profile_image, account_email
client-name: Kakao

logging:
level:
org.springframework.security: TRACE
org.hibernate.engine.internal.StatisticalLoggingSessionEventListener: OFF


springdoc:
swagger-ui:
path: /swagger
Expand Down

0 comments on commit 33e6318

Please sign in to comment.