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

fix(orphan-chain): sentry logging #1140

Merged
merged 4 commits into from
Nov 28, 2024

Conversation

MCozhusheck
Copy link
Collaborator

@MCozhusheck MCozhusheck commented Nov 27, 2024

Description

Add sentry logging when an orphan chain has been detected. To not spam the sentry I made send event only once.

Motivation and Context

This warning pop ups in many cases which is not obvious. With more logging it will be easier for developers to find the root cause.

How Has This Been Tested?

Create locally an orphan chain and check if logs appeared in sentry. In my case there was logged event with description:
Orphan chain detected: block 19debc546c857d112eddb1c3c76969e815c9d41be44fdbae57e88ca7576be152 at height 15725 not found in local chain. Block scan tip height: 15775 - Local tip height: 15670

What process can a PR reviewer use to test or verify this change?

Same as above.

Breaking Changes

  • None
  • Requires data directory on base node to be deleted
  • Requires hard fork
  • Other - Please specify

@MCozhusheck MCozhusheck marked this pull request as ready for review November 27, 2024 20:04
@brianp brianp merged commit 5642904 into tari-project:main Nov 28, 2024
9 checks passed
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.

2 participants