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
Catch exceptions in hooks defined by users #2155
Merged
nateberkopec
merged 4 commits into
puma:master
from
andrykonchin:1551-handle-exceptions-in-hooks
Mar 10, 2020
Merged
Catch exceptions in hooks defined by users #2155
nateberkopec
merged 4 commits into
puma:master
from
andrykonchin:1551-handle-exceptions-in-hooks
Mar 10, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Makes sense and LGTM. |
nateberkopec
added
feature
waiting-for-changes
Waiting on changes from the requestor
labels
Mar 7, 2020
andrykonchin
force-pushed
the
1551-handle-exceptions-in-hooks
branch
from
March 8, 2020 21:24
529adbd
to
60d4a70
Compare
There is only one issue with logging. I looked through the project and found out there are two options
I prefer the second one because it's easier to check in tests and Please let me know if you prefer the first option. |
andrykonchin
force-pushed
the
1551-handle-exceptions-in-hooks
branch
from
March 8, 2020 21:55
fb84056
to
55eddb7
Compare
andrykonchin
changed the title
[WIP] Catch exceptions in hooks defined by users
Catch exceptions in hooks defined by users
Mar 8, 2020
nateberkopec
added
waiting-for-review
Waiting on review from anyone
and removed
waiting-for-changes
Waiting on changes from the requestor
labels
Mar 8, 2020
nateberkopec
requested changes
Mar 9, 2020
nateberkopec
added
waiting-for-changes
Waiting on changes from the requestor
and removed
waiting-for-review
Waiting on review from anyone
labels
Mar 9, 2020
nateberkopec
added
waiting-for-review
Waiting on review from anyone
and removed
waiting-for-changes
Waiting on changes from the requestor
labels
Mar 9, 2020
Thanks for your contribution @andrykonchin! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Suppress exceptions in user defined hooks (like
on_worker_boot
). We have just to rescue and log them.Example of logged message:
Closes #1551
Your checklist for this pull request
[changelog skip]
the pull request title.[ci skip]
to the title of the PR.#issue
" to the PR description or my commit messages.