Skip to content

Commit 2a5d9da

Browse files
committed
fix: 로깅 레벨 변경
1 parent 47a3062 commit 2a5d9da

File tree

2 files changed

+46
-9
lines changed

2 files changed

+46
-9
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package com.swyp.global.controller;
2+
3+
import org.springframework.stereotype.Controller;
4+
import org.springframework.web.bind.annotation.GetMapping;
5+
import org.springframework.web.bind.annotation.ResponseBody;
6+
7+
@Controller
8+
public class RootController {
9+
10+
@GetMapping("/")
11+
@ResponseBody
12+
public String root() {
13+
return "Willgo API Server is running!";
14+
}
15+
}

Location-based-target-authentication/src/main/resources/application.properties

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ spring.main.allow-bean-definition-overriding=true
66
# Profile
77
spring.profiles.active=secret
88
spring.config.import=classpath:application-secret.properties
9-
logging.level.com.swyp.location=DEBUG
10-
logging.level.org.springframework.web.reactive.function.client=DEBUG
9+
logging.level.com.swyp.location=INFO
10+
logging.level.org.springframework.web.reactive.function.client=INFO
1111

1212
# Server Configuration
1313
server.port=443
@@ -39,12 +39,12 @@ spring.jpa.open-in-view=false
3939
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
4040

4141
# Database Debug Logging
42-
logging.level.org.hibernate.SQL=DEBUG
43-
logging.level.org.hibernate.type.descriptor.sql=TRACE
44-
logging.level.com.zaxxer.hikari=DEBUG
45-
logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE
46-
spring.jpa.properties.hibernate.show_sql=true
47-
spring.jpa.properties.hibernate.use_sql_comments=true
42+
logging.level.org.hibernate.SQL=INFO
43+
logging.level.org.hibernate.type.descriptor.sql=INFO
44+
logging.level.com.zaxxer.hikari=INFO
45+
logging.level.org.hibernate.type.descriptor.sql.BasicBinder=INFO
46+
spring.jpa.properties.hibernate.show_sql=false
47+
spring.jpa.properties.hibernate.use_sql_comments=false
4848
spring.datasource.hikari.connection-test-query=SELECT 1
4949
spring.datasource.hikari.connection-timeout=5000
5050
spring.datasource.hikari.maximum-pool-size=10
@@ -86,4 +86,26 @@ spring.web.resources.static-locations=classpath:/META-INF/resources/,classpath:/
8686
spring.web.resources.add-mappings=true
8787

8888
# Kakao API Configuration
89-
kakao.local.search.url=https://dapi.kakao.com/v2/local/search/keyword.json
89+
kakao.local.search.url=https://dapi.kakao.com/v2/local/search/keyword.json
90+
91+
# 로깅 레벨 설정
92+
logging.level.root=WARN
93+
logging.level.com.swyp=INFO
94+
logging.level.com.swyp.social_login=INFO
95+
96+
# 특정 컴포넌트 로깅 레벨 설정
97+
logging.level.org.apache.tomcat=WARN
98+
logging.level.org.apache.catalina=WARN
99+
logging.level.org.apache.coyote=WARN
100+
logging.level.org.springframework=WARN
101+
logging.level.org.springframework.web=WARN
102+
logging.level.org.springframework.security=WARN
103+
logging.level.org.springframework.web.servlet.handler=WARN
104+
logging.level.org.springframework.web.client.RestTemplate=WARN
105+
logging.level.org.springframework.security.web=WARN
106+
logging.level.org.springframework.security.oauth2=WARN
107+
logging.level.org.apache.tomcat.util.net=WARN
108+
109+
# 에러 추적 로깅 설정 (필요한 경우만 활성화)
110+
# logging.level.com.swyp.social_login.controller.KakaoAuthController=DEBUG
111+
# logging.level.com.swyp.social_login.service.auth.KakaoAuthImpl=DEBUG

0 commit comments

Comments
 (0)