Skip to content

Commit

Permalink
fix(spring): Add flag to request logger (spinnaker#1117)
Browse files Browse the repository at this point in the history
  • Loading branch information
robzienert committed Mar 26, 2020
1 parent 5685f79 commit d35830f
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -96,9 +96,6 @@ class GateConfig extends RedisHttpSessionConfiguration {
@Value('${retrofit.logLevel:BASIC}')
String retrofitLogLevel

@Value('${request-logging.enabled:false}')
Boolean requestLogging

@Autowired
RequestInterceptor spinnakerRequestInterceptor

Expand Down Expand Up @@ -404,6 +401,7 @@ class GateConfig extends RedisHttpSessionConfiguration {
* filter are also present in the request log).
*/
@Bean
@ConditionalOnProperty("request-logging.enabled")
FilterRegistrationBean requestLoggingFilter() {
def frb = new FilterRegistrationBean(new RequestLoggingFilter())
frb.order = Ordered.LOWEST_PRECEDENCE
Expand Down

0 comments on commit d35830f

Please sign in to comment.