generated from pricelees/issue-pr-template
refactor: 테스트 및 로컬 환경에서도 slow-query-logger 동작 검증을 위한 설정 활성화
This commit is contained in:
parent
336d41c589
commit
c82a113d99
@ -13,7 +13,6 @@ import org.springframework.context.annotation.Profile
|
|||||||
import javax.sql.DataSource
|
import javax.sql.DataSource
|
||||||
|
|
||||||
@Configuration
|
@Configuration
|
||||||
@Profile("deploy")
|
|
||||||
@EnableConfigurationProperties(SlowQueryProperties::class)
|
@EnableConfigurationProperties(SlowQueryProperties::class)
|
||||||
class ProxyDataSourceConfig {
|
class ProxyDataSourceConfig {
|
||||||
|
|
||||||
@ -36,7 +35,6 @@ class ProxyDataSourceConfig {
|
|||||||
.build()
|
.build()
|
||||||
}
|
}
|
||||||
|
|
||||||
@Profile("deploy")
|
|
||||||
@ConfigurationProperties(prefix = "slow-query")
|
@ConfigurationProperties(prefix = "slow-query")
|
||||||
data class SlowQueryProperties(
|
data class SlowQueryProperties(
|
||||||
val loggerName: String,
|
val loggerName: String,
|
||||||
|
|||||||
@ -43,3 +43,8 @@ management:
|
|||||||
tracing:
|
tracing:
|
||||||
sampling:
|
sampling:
|
||||||
probability: 1
|
probability: 1
|
||||||
|
|
||||||
|
slow-query:
|
||||||
|
logger-name: local-slow-query-logger
|
||||||
|
log-level: info
|
||||||
|
threshold-ms: 5
|
||||||
@ -45,3 +45,8 @@ management:
|
|||||||
tracing:
|
tracing:
|
||||||
sampling:
|
sampling:
|
||||||
probability: 1
|
probability: 1
|
||||||
|
|
||||||
|
slow-query:
|
||||||
|
logger-name: test-slow-query-logger
|
||||||
|
log-level: info
|
||||||
|
threshold-ms: 5
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user