Repository navigation
fix(logger): clear_state should keep custom key formats - #1095
heitorlessa merged 3 commits into
Conversation
|
Thanks a lot for your first contribution! Please check out our contributing guidelines and don't hesitate to ask whatever you need. |
Codecov Report
@@ Coverage Diff @@
## develop #1095 +/- ##
========================================
Coverage 99.96% 99.96%
========================================
Files 119 119
Lines 5377 5377
Branches 613 613
========================================
Hits 5375 5375
Partials 2 2
Continue to review full report at Codecov.
|
heitorlessa
left a comment
There was a problem hiding this comment.
one suggestion on tests so we reduce the use of regex to improve test perf and ease future maintenance for the untrained eye.
|
Awesome work, congrats on your first merged pull request and thank you for helping improve everyone's experience! |
Issue #, if available: #1084
Description of changes:
When using
clear_state=True, overriden formats for standard logging keys likelocationandtimestampwas being overriden with the default formats. Overriding the formats are explained in the docs like this:Issue was that when
clear_state=Truewas used, the default keys were reset to their defaults (by the fix implemented in #1088). This fix saves the formatting keys on instantiation and uses those instead whenclear_stateis called.Checklist
Breaking change checklist
RFC issue #:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.