Log exceptions thrown by signal callbacks#20015
Merged
balloob merged 10 commits intohome-assistant:devfrom Jan 17, 2019
Merged
Conversation
Contributor
Author
|
Are tests needed for this change? |
4 tasks
houndci-bot
reviewed
Jan 12, 2019
ed80b2e to
f51a24b
Compare
houndci-bot
reviewed
Jan 15, 2019
balloob
reviewed
Jan 15, 2019
4 tasks
balloob
reviewed
Jan 16, 2019
1a76ad8 to
ff9dce8
Compare
balloob
reviewed
Jan 17, 2019
balloob
approved these changes
Jan 17, 2019
Member
|
@emontnemery this change introduces a bug when the target is a functools.partial. We need to check that the target is a partial, then inspect the contained function to know whether it should be a coroutine or not. See #20119 where this was added to async_add_job, which the dispatcher calls. Edit: I'll submit a PR to address this -- just running local tests now before I submit. |
3 tasks
Merged
alandtse
pushed a commit
to alandtse/home-assistant
that referenced
this pull request
Feb 12, 2019
* Log exceptions thrown by signal callbacks * Fix unsub * Simplify traceback print * Typing * Add test * lint * Review comments * Rework MQTT test case * Fix bad merge * Fix bad merge
This file contains hidden or 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
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:
Improve logging of exceptions thrown by MQTT message callbacks as discussed in #15446
Example of improved logging:
Example of improved logging if not skipping the wrapper:
Example of old error message:
Checklist:
tox. Your PR cannot be merged unless tests passIf the code does not interact with devices: