-
Notifications
You must be signed in to change notification settings - Fork 624
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
Add log message for debug error failed acknowledgement errors #3077
Add log message for debug error failed acknowledgement errors #3077
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3077 +/- ##
==========================================
- Coverage 78.60% 78.57% -0.03%
==========================================
Files 177 177
Lines 12398 12414 +16
==========================================
+ Hits 9745 9754 +9
- Misses 2227 2231 +4
- Partials 426 429 +3
|
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.
Thank you for working on this, @GNaD13! I left a bunch of nits and a couple of questions.
Hi @crodriguezvega , I have fixed it. Thanks for your review. |
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.
Hi @GNaD13, thanks for the work on this! I have a few suggestions about how to structure the logging.
I think it is preferable to reduce the number of locations that we are directly logging things, and prefer wrapping errors with additional context where possible.
Taking the transfer module as an example, I think the application itself should log errors from the callback just here.
This way we could update your log statements to become return sdkerrors.Wrapf(err, "additional information")
and then log them in one place after im.keeper.OnRecvPacket
is called.
I think the same approach can be taken with the interchain accounts host module, we can return wrapped errors and log them in the host module.
What do you think?
Hi @chatton , thanks for your reviewed. I've fixed it |
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 Thanks @GNaD13
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.
Overall LGTM! Thanks @GNaD13
I left notes on instances where I thought changes might be unnecessary, please let me know if you have any questions
Hi sir @colin-axner , thanks for your reviewed. I've fixed it. |
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.
Thank you @GNaD13! I love to see our errors/debugging get easier! 🙌
I left one more suggestion, but otherwise looks perfect
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.
🙏
The branch will need to be brought up to date with main to be automerged |
Description
closes: #2725
Log error if failed acknowledgement errors for debug
Commit Message / Changelog Entry
see the guidelines for commit messages. (view raw markdown for examples)
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
).godoc
comments.Files changed
in the Github PR explorer.Codecov Report
in the comment section below once CI passes.