Skip to content

Log underlying error, when consensus is stopped due to one - #5066

Merged
KShivendu merged 1 commit into
devfrom
conensus-stop-log-error
Sep 11, 2024
Merged

KShivendu merged 1 commit into
devfrom
conensus-stop-log-error

Conversation

@ffuugoo

@ffuugoo ffuugoo commented Sep 11, 2024

Copy link
Copy Markdown
Contributor

Currently, when consensus is stopped due to ServiceError during consensus entry application, we only log "context" message, without the actual underlying error itself.

When formatting anyhow::Error without any modifiers, it will only print top-most error or context message. To print the whole error stack (e.g., all context messages and all std::error::Error::source errors in most recent: less recent: oldest format) we can use "alternative" formatting.

All Submissions:

  • Contributions should target the dev branch. Did you create your branch from dev?
  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  1. Does your submission pass tests?
  2. Have you formatted your code locally using cargo +nightly fmt --all command prior to submission?
  3. Have you checked your code using cargo clippy --all --all-features command?

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?

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