-
Notifications
You must be signed in to change notification settings - Fork 637
Rephrase log when committed TX not in local mempool + make it debug #738
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
mempool/clist_mempool.go
Outdated
@@ -612,7 +612,7 @@ func (mem *CListMempool) Update( | |||
// 100 | |||
// https://github.com/tendermint/tendermint/issues/3322. | |||
if err := mem.RemoveTxByKey(tx.Key()); err != nil { | |||
mem.logger.Error("Committed transaction could not be removed from mempool", "key", tx.Key(), err.Error()) | |||
mem.logger.Debug("Committed transaction not in local mempool (not an error)", "key", tx.Key(), err.Error()) |
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. Something that was missing in the previous PR, and that we can fix here, is to add a tag before err.Error()
. For example: "error", err.Error()
, or some other name.
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.
Well spotted! Fixed it
…738) Closes #737 If the execution hits the log line changed in this PR, it doesn't mean there is an error condition. A TX included in a block does not need to be present in the local mempool of a nodes at the time it is processing the new block. As the info is still useful, we re-word the message and turn it into a Debug log --- #### PR checklist - [ ] Tests written/updated - [ ] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog) - [ ] Updated relevant documentation (`docs/` or `spec/`) and code comments (cherry picked from commit 6498d67)
…738) (#749) Closes #737 If the execution hits the log line changed in this PR, it doesn't mean there is an error condition. A TX included in a block does not need to be present in the local mempool of a nodes at the time it is processing the new block. As the info is still useful, we re-word the message and turn it into a Debug log --- #### PR checklist - [ ] Tests written/updated - [ ] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog) - [ ] Updated relevant documentation (`docs/` or `spec/`) and code comments (cherry picked from commit 6498d67) Co-authored-by: Sergio Mena <sergio@informal.systems>
…738) Closes #737 If the execution hits the log line changed in this PR, it doesn't mean there is an error condition. A TX included in a block does not need to be present in the local mempool of a nodes at the time it is processing the new block. As the info is still useful, we re-word the message and turn it into a Debug log --- #### PR checklist - [ ] Tests written/updated - [ ] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog) - [ ] Updated relevant documentation (`docs/` or `spec/`) and code comments
Closes #737
If the execution hits the log line changed in this PR, it doesn't mean there is an error condition.
A TX included in a block does not need to be present in the local mempool of a nodes at the time it is processing the new block.
As the info is still useful, we re-word the message and turn it into a Debug log
PR checklist
.changelog
(we use unclog to manage our changelog)docs/
orspec/
) and code comments