Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lower log level of ResponseStatusExceptionHandler [SPR-16049] #20598

spring-issuemaster opened this issue Oct 5, 2017 · 0 comments


None yet
2 participants
Copy link

commented Oct 5, 2017

Stéphane Nicoll opened SPR-16049 and commented

Assuming the following code

public Mono<Speaker> byId(@PathVariable String id) {
    return this.repository.findById(id)
            .switchIfEmpty(Mono.error(new ResponseStatusException(HttpStatus.NOT_FOUND)));

logs at error level when an unknown id is provided:

ERROR 9551 --- [      Thread-15] o.s.w.s.h.ResponseStatusExceptionHandler : Response status 404

ERROR for an expected case sounds too high.

Affects: 5.0 GA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.