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

Print stacktrace on panic recover. #117

Merged
merged 1 commit into from
Aug 28, 2019
Merged

Conversation

aromancev
Copy link
Contributor

Hey there! We had some problems with finding panic reason in our code. Added stack trace to error log.

@m110
Copy link
Member

m110 commented Aug 28, 2019

Hey @andreyromancev. Thanks for contributing! Was the panic related with code running in the handler? You can use the Recoverer middleware as well to catch errors like this: https://github.com/ThreeDotsLabs/watermill/blob/master/message/router/middleware/recoverer.go

@m110 m110 merged commit 4768833 into ThreeDotsLabs:master Aug 28, 2019
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