I tried adding:
@Configuration
static class WebConfig implements WebFluxConfigurer {
@Override
public void configureHttpMessageCodecs(ServerCodecConfigurer configurer) {
configurer.defaultCodecs().enableLoggingRequestDetails(true);
}
}
However it gets overridden from the CodecsAutoConfiguration which uses the value from HttpProperties#isLogRequestDetails() but I have not set that property. Perhaps the logRequestDetails property should return Boolean, so it's possible to check if it was explicitly set, and if not then leave it to whatever it is already set to?