-
Notifications
You must be signed in to change notification settings - Fork 358
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
Improve redundant packet logs #4254
Conversation
Code::Err(code) if response.log.contains("packet messages are redundant") => { | ||
info!( | ||
?response, | ||
diagnostic = ?sdk_error_from_tx_sync_error_code(code.into(), estimated_gas), |
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.
Won't this just return "unknown tx error" since this error 22 is not handled in sdk_error_from_tx_sync_error_code
, and moreover it is not an SDK error but an ibc-go one?
We can maybe just remove the diagnostic flag, and change the message to "all packets in tx have been relayed already, no fees were consumed" or something similar
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.
You are right, sorry I missed that.
Fixed it here 28d857b
I kept the diagnostic flag, but set it to the response log and added a code
field
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.
And added the additional information about the fees here c8f7bd9
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.
Perfect!
Closes: #4252
Description
PR author checklist:
unclog
.Added tests: integration (for Hermes) or unit/mock tests (for modules).Updated code comments and documentation (e.g.,docs/
).If guide has been updated, tag GitHub usermircea-c
Reviewer checklist:
Files changed
in the GitHub PR explorer.