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

Error handler #40

Merged
merged 3 commits into from
Jan 30, 2021
Merged

Error handler #40

merged 3 commits into from
Jan 30, 2021

Conversation

sp00m
Copy link
Contributor

@sp00m sp00m commented Dec 9, 2020

Spring's DefaultErrorWebExceptionHandler isn't aware of the logging context, leading to errors being logged without context. This PR reimplements it.

I had to move the LoggingContextFilter to a LoggingContextWebHandler, as the reactive context can only be seen by the operators above it. That's not ideal, but Spring doesn't let us wrap around the ErrorWebExceptionHandler, it's the "outer-most filter", hardcoded unfortunately, hence having to rewrite the WebHandler too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants