Skip to content

Commit

Permalink
Remove management.dump_requests property
Browse files Browse the repository at this point in the history
  • Loading branch information
snicoll committed Mar 2, 2016
1 parent 98c9744 commit 7029ba5
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2014 the original author or authors.
* Copyright 2012-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -21,7 +21,6 @@

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.actuate.trace.TraceProperties;
import org.springframework.boot.actuate.trace.TraceRepository;
import org.springframework.boot.actuate.trace.WebRequestTraceFilter;
Expand Down Expand Up @@ -50,17 +49,13 @@ public class TraceWebFilterAutoConfiguration {
@Autowired(required = false)
private ErrorAttributes errorAttributes;

@Value("${management.dump_requests:false}")
private boolean dumpRequests;

@Autowired
TraceProperties traceProperties = new TraceProperties();

@Bean
public WebRequestTraceFilter webRequestLoggingFilter(BeanFactory beanFactory) {
WebRequestTraceFilter filter = new WebRequestTraceFilter(this.traceRepository,
this.traceProperties);
filter.setDumpRequests(this.dumpRequests);

if (this.errorAttributes != null) {
filter.setErrorAttributes(this.errorAttributes);
Expand Down

0 comments on commit 7029ba5

Please sign in to comment.