-
Notifications
You must be signed in to change notification settings - Fork 240
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
Feature Request: Enhance blacklist logging visibility (Issue #1333) #1334
Feature Request: Enhance blacklist logging visibility (Issue #1333) #1334
Conversation
Important Auto Review SkippedAuto reviews are disabled on base/target branches other than the default branch. Please add the base/target branch pattern to the list of additional branches to be reviewed in the settings. Please check the settings in the CodeRabbit UI or the To trigger a single review, invoke the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
As per the contribution guidelines, I hereby affirm that my contribution is in accordance with the Developer's Certificate of Origin. |
I tested the build binary on the production environment and the logging worked as expected. |
@Perseverance42 can you sign the commits? |
418a65e
to
3c3ce1d
Compare
Solution: raised logging severity to 'error' Signed-off-by: Bladerox <perseverance-pool@gmx.de>
3c3ce1d
to
982f32b
Compare
The commit is signed now. |
Update app/app.go Signed-off-by: yihuang <huang@crypto.com> update log Problem: blacklist logging visibilty to low (crypto-org-chain#1334) Solution: raised logging severity to 'error' Signed-off-by: Bladerox <perseverance-pool@gmx.de> Co-authored-by: Bladerox <pa.sa95@gmx.de>
* Problem: black list addresses are not logged (#1328) Update app/app.go Signed-off-by: yihuang <huang@crypto.com> update log Problem: blacklist logging visibilty to low (#1334) Solution: raised logging severity to 'error' Signed-off-by: Bladerox <perseverance-pool@gmx.de> Co-authored-by: Bladerox <pa.sa95@gmx.de> * Update CHANGELOG.md Signed-off-by: yihuang <huang@crypto.com> * bump version * fix conflict * fix build --------- Signed-off-by: Bladerox <perseverance-pool@gmx.de> Signed-off-by: yihuang <huang@crypto.com> Co-authored-by: Bladerox <pa.sa95@gmx.de>
This PR implements the proposed changes from #1333, addressing the issue with logging levels. Initially, I intended to use the warn log level, but it appears that the
Warn()
method lacks implementation in "github.com/tendermint/tendermint/libs/log". Therefore, I opted for the error log level to ensure visibility, considering the importance of the logs in question.To minimize operator confusion, it could be beneficial to further clarify the log messages to indicate that this level of logging is intentional and chosen for its visibility before merging.
PR Checklist:
Based on release/v1.0.x since it is the origin of the change in Problem: black list addresses are not logged #1328
make
)[ ] Have you included tests for any non-trivial functionality?make test
)go fmt
)golangci-lint run
)[ ] If you added any dependencies, have you checked they do not contain any known vulnerabilities? (go list -json -m all | nancy sleuth
)[ ] If your changes affect the client infrastructure, have you run the integration test?[ ] If your changes affect public APIs, does your PR follow the C4 evolution of public contracts?- [ ] If your code changes public APIs, have you incremented the crate version numbers and documented your changes in the CHANGELOG.md?I'm eager to learn and improve through this contribution process, so I welcome any feedback or suggestions.
Thank you for considering my PR.