fix(logging): Don't include json_default in logs#132
Merged
Conversation
Changes: * formatter.py - pop `json_default` from the **kwargs before updating `self.format_dict` * formatter.py - clean up and remove uneeded `pragma: no cover` * formatter.py - remove unused `decode` case * test_aws_lambda_logging.py - update unit tests to include a check for `json_default`
Codecov Report
@@ Coverage Diff @@
## develop #132 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 24 24
Lines 706 706
Branches 66 67 +1
=========================================
Hits 706 706
Continue to review full report at Codecov.
|
Contributor
|
Thanks a lot Mike!! |
heitorlessa
referenced
this pull request
in ran-isenberg/aws-lambda-powertools-python
Aug 26, 2020
* develop: docs: Fix doc for log sampling (#135) fix(logging): Don't include `json_default` in logs (#132) chore: bump to 1.4.0 docs: add Lambda Layer SAR App url and ARN fix: upgrade dot-prop, serialize-javascript fix heading error due to merge formatting for bash script add layer to docs and how to use it from SAR moved publish step to publish workflow after pypi push fix(ssm): Make decrypt an explicit option and refactoring (#123) change to eu-west-1 default region remove tmp release flag and set trigger to release published add overwrite flag for ssm add relase tag simulation more typos fix typo in branch trigger fix indent, yaml ... line endings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
Currently given a custom
json_defaultwith the Logger When we log out message Then we include thejson_defaultin the log message:The output should exclude
json_default:Description of changes:
json_defaultfrom the **kwargs before updatingself.format_dictpragma: no coverdecodecasejson_defaultChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.