-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Implement logger interface on keeper. #4625
Implement logger interface on keeper. #4625
Conversation
- Added a logger interface to the keeper for modules where it wasn't defined. - In the crisis module, removed the passing of the logger as a parameter in abci.go and module.go
…ses to fail. - Added a change log entry for the code changes. - Implemented a better pattern for module keepers. - Removed logger being passed as a parameter in the test files that were failing.
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.
Thanks @aayushijain23 ! I believe we need to have a discussion if every Keeper
should have a Logger
or not. In some of the cases presented here, it's not even being used.
Codecov Report
@@ Coverage Diff @@
## master #4625 +/- ##
==========================================
+ Coverage 54.11% 54.11% +<.01%
==========================================
Files 260 260
Lines 16364 16373 +9
==========================================
+ Hits 8855 8861 +6
- Misses 6863 6866 +3
Partials 646 646 |
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.
ACK -- great job @aayushijain23 ☕️
@aayushijain23 can you resolve merge conflicts please? |
…implement-logger-interface
closes: #3512
Targeted PR against correct branch (see CONTRIBUTING.md)
Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
Wrote tests
Updated relevant documentation (
docs/
)Added a relevant changelog entry:
clog add [section] [stanza] [message]
rereviewed
Files changed
in the github PR explorerFor Admin Use: