-
Notifications
You must be signed in to change notification settings - Fork 652
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
MessageModule.HandleError should log an Error when it throws #2366
Comments
I'm pretty sure this is by design, see 94c74fb So we only log a error when the message is sent to the error queue. |
this exception is not sent to the error queue |
Yes that is correct, that happens later on |
nope. only the exception from the handler is appended to the error queue headers. not the exception from the MessageModule.HandleError |
That is not nice 😞 So any exception in a messagemodule does not get added to the error message? |
Also, I'm getting confused because in your link above you are pointing to |
the link is correct here is a test to debug. https://github.com/Particular/NServiceBus/blob/removeStackTraceTweaks/src/NServiceBus.AcceptanceTests/ExceptionHandling/When_Module_Error_throws.cs although u may want to do it on master since that branch has moved on a little |
fixed in d414f49 |
When
HandleEndMessage
orHandleBeginMessage
throw anError
is loggedHowever when
HandleError
is called aWarn
is logged.The text was updated successfully, but these errors were encountered: