Skip to content

Cannot set enableLoggingRequestDetails via WebFluxConfigurer #14723

@rstoyanchev

Description

@rstoyanchev

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?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions