-
Notifications
You must be signed in to change notification settings - Fork 710
Improve forwarding transaction log in case of error #4288
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
Conversation
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
| if pos == 0 { | ||
| log.Warn("error forwarding transaction trying different target", "current target", f.targets[pos], "err", err) | ||
| } else { | ||
| log.Warn("error forwarding transaction to a backup target", "target", f.targets[pos], "pos", pos, "total targets", len(f.rpcClients), "err", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didn't add "trying different target" here since this could be the last target. We could add logic to determine if this is the last target but I think that would be overkill for just logging
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #4288 +/- ##
==========================================
- Coverage 33.04% 32.78% -0.27%
==========================================
Files 482 482
Lines 57028 57031 +3
==========================================
- Hits 18843 18695 -148
- Misses 34778 35069 +291
+ Partials 3407 3267 -140 |
KolbyML
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
❌ 6 Tests Failed:
View the top 3 failed tests by shortest run time
📣 Thoughts on this report? Let Codecov know! | Powered by Codecov |
joshuacolvin0
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Improve forwarding transaction log in case of error
fixes NIT-4055