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

Error reporting QoL #88

Merged
merged 2 commits into from
Aug 13, 2024
Merged

Error reporting QoL #88

merged 2 commits into from
Aug 13, 2024

Conversation

strohel
Copy link
Member

@strohel strohel commented Aug 12, 2024

  • require Display instead of Debug for Actor::Error associated type
  • print handle() (and friends) errors using {:#} rather than {:?}
    • this hides the backtrace print of anyhow errors
  • differentiate handle() (and friends) errors while shutting down vs. running and log them with lower severity
  • make it more clear and less spammy when trying to shut down a system while it is already shutting down

This is a semver-breaking change (due to the new bound on Actor::Error).

Copy link
Contributor

@mbernat mbernat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice!

Copy link
Member

@goodhoko goodhoko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@strohel strohel force-pushed the error-reporting-qol branch 2 times, most recently from 9c21aff to 0e10b57 Compare August 13, 2024 11:47
- require Display instead of Debug for Actor::Error associated type
- print handle() (and friends) errors using `{:#}` rather than `{:?}`
  - this hides the backtrace print of anyhow errors
- differentiate handle() (and friends) errors while shutting down vs. running and log them with lower severity
- make it more clear and less spammy when trying to shut down a system while it is already shutting down
@strohel strohel force-pushed the error-reporting-qol branch from 0e10b57 to 30941a3 Compare August 13, 2024 12:09
Coming from live testing the these changes.
@strohel strohel merged commit edb7fdd into main Aug 13, 2024
6 checks passed
@strohel strohel deleted the error-reporting-qol branch August 13, 2024 13:18
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.

3 participants