-
Notifications
You must be signed in to change notification settings - Fork 155
Failing asynchronous event handlers do not produce error logs #372
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
Comments
I think it is also reported in this issue: #311 Registering a custom exception handler also didn't work for me. |
We now propagate potentially occurring exceptions in CompletionRegisteringAdvisor to make sure the standard exception handling facilities kick in, both for synchronous and asynchronous listener invocations. This implies that during republication we need to handle exceptions to make sure that failing synchronous listeners to not prevent the submission of subsequent publications. We currently log such exceptions into error.
I've tweaked the advisor to propagate the exception now. This unfortunately has side effects on the republication of synchronous event publications, as they now need to be handled as well. I am currently replicating the behavior of |
We now propagate potentially occurring exceptions in CompletionRegisteringAdvisor to make sure the standard exception handling facilities kick in, both for synchronous and asynchronous listener invocations. This implies that during republication we need to handle exceptions to make sure that failing synchronous listeners to not prevent the submission of subsequent publications. We currently log such exceptions into error.
We now propagate potentially occurring exceptions in CompletionRegisteringAdvisor to make sure the standard exception handling facilities kick in, both for synchronous and asynchronous listener invocations.
Hello!
I came across this section of code and I think it might benefit from an Error Log here:
spring-modulith/spring-modulith-events/spring-modulith-events-core/src/main/java/org/springframework/modulith/events/support/CompletionRegisteringAdvisor.java
Line 176 in 9f42ae4
If this should remain an Info Log, could you please provide some guidance on how to implement a global async exception logging for this? It would be really helpful if this could also be documented, so it's clear for other developers as well.
Thanks a lot!
The text was updated successfully, but these errors were encountered: