Skip to content
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

Should msg also be included in filter fields? #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pingz
Copy link

@pingz pingz commented Mar 19, 2018

msg is not included in logging.Formatter documents, and will be included in the elasticsearch message body, as you're not excluding it here. If you using this handler just for one specific logger statement, it is fine. If you want to apply it to global logger, and there will be various types of msg coexisted, then elasticsearch will drop some messages because of that.

`msg` is not included in logging.Formatter documents, and will be included in the elasticsearch message body, as you're not excluding it here. If you using this handler just for one specific logger statement, it is fine. If you want to apply it to global logger, and there will be various types of `msg` coexisted, then elasticsearch will drop some messages because of that.
@codecov-io
Copy link

Codecov Report

Merging #40 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #40   +/-   ##
=======================================
  Coverage   82.78%   82.78%           
=======================================
  Files           2        2           
  Lines         151      151           
  Branches       18       18           
=======================================
  Hits          125      125           
  Misses         22       22           
  Partials        4        4
Impacted Files Coverage Δ
cmreslogging/handlers.py 81.94% <ø> (ø) ⬆️

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 6765a24...da2b9d7. Read the comment docs.

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.

2 participants