Skip to content

Ensure log formatter doesn't fail with non json-serializable params - #9

Merged
jezdez merged 1 commit into
mozilla-services:masterfrom
diox:make-everything-serializable
Apr 6, 2017
Merged

jezdez merged 1 commit into
mozilla-services:masterfrom
diox:make-everything-serializable

Conversation

@diox

@diox diox commented Mar 30, 2017

Copy link
Copy Markdown
Contributor

Fix #8

It could be argued that using o.__dict__ instead of repr(o) might be better for some users, but I thought it would be too verbose for the generic case. Maybe it would be worth allowing easy customization of the encoder class in JsonLogFormatter instead, but I went for the simpler patch.

@codecov-io

codecov-io commented Mar 30, 2017 •

Copy link
Copy Markdown

Codecov Report

Merging #9 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master     #9   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           8      8           
  Lines         204    207    +3     
  Branches       28     28           
=====================================
+ Hits          204    207    +3
Impacted Files Coverage Δ
src/dockerflow/logging.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5d1c045...d4b872a. Read the comment docs.

@EnTeQuAk

EnTeQuAk commented Apr 5, 2017

Copy link
Copy Markdown

cc @jezdez on this since he's been working on this project for some time now and could help reviewing this.

@jezdez

jezdez commented Apr 5, 2017 via email

Copy link
Copy Markdown
Contributor

@jezdez

jezdez commented Apr 6, 2017

Copy link
Copy Markdown
Contributor

LGTM.

@jezdez
jezdez merged commit 63791a6 into mozilla-services:master Apr 6, 2017
@jezdez

jezdez commented Apr 6, 2017

Copy link
Copy Markdown
Contributor

@diox @EnTeQuAk 2017.4.0 release coming to PyPI..

@diox

diox commented Apr 6, 2017

Copy link
Copy Markdown
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants