Reduce excessive logging by disabling Statsd metrics export

Closes gh-11009
This commit is contained in:
Andy Wilkinson 2017-11-20 15:27:01 +00:00
parent 4d1a98b380
commit bc98b84013
1 changed files with 8 additions and 4 deletions

View File

@ -81,13 +81,17 @@ public class WebEndpointsAutoConfigurationIntegrationTests {
}
private WebApplicationContextRunner servletWebRunner() {
return new WebApplicationContextRunner().withConfiguration(
UserConfigurations.of(WebEndpointTestApplication.class));
return new WebApplicationContextRunner()
.withConfiguration(
UserConfigurations.of(WebEndpointTestApplication.class))
.withPropertyValues("spring.metrics.export.statsd.enabled:false");
}
private ReactiveWebApplicationContextRunner reactiveWebRunner() {
return new ReactiveWebApplicationContextRunner().withConfiguration(
UserConfigurations.of(WebEndpointTestApplication.class));
return new ReactiveWebApplicationContextRunner()
.withConfiguration(
UserConfigurations.of(WebEndpointTestApplication.class))
.withPropertyValues("spring.metrics.export.statsd.enabled:false");
}
@EnableAutoConfiguration(exclude = { FlywayAutoConfiguration.class,