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

loki-docker-driver: Change "ignoring empty line" to debug logging #2343

Merged
merged 1 commit into from
Jul 13, 2020
Merged

loki-docker-driver: Change "ignoring empty line" to debug logging #2343

merged 1 commit into from
Jul 13, 2020

Conversation

jdfalk
Copy link
Contributor

@jdfalk jdfalk commented Jul 12, 2020

Signed-off-by: Johnathan Falk johnathan.falk@gmail.com

What this PR does / why we need it:
This PR changes the error message "ignoring empty line" to be a debug not info message so it doesn't clutter and destroy logs.

Which issue(s) this PR fixes:
Fixes #2342

Special notes for your reviewer:
One misbehaving docker container can spam millions of messages in day by having this as default info. Yes you should fix the container, but this also shouldn't fill my log drive with useless messages.

Checklist

  • Documentation added
  • Tests updated

Signed-off-by: Johnathan Falk <johnathan.falk@gmail.com>
@CLAassistant
Copy link

CLAassistant commented Jul 12, 2020

CLA assistant check
All committers have signed the CLA.

@codecov-commenter
Copy link

Codecov Report

Merging #2343 into master will decrease coverage by 0.02%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2343      +/-   ##
==========================================
- Coverage   61.50%   61.48%   -0.03%     
==========================================
  Files         160      160              
  Lines       13422    13422              
==========================================
- Hits         8255     8252       -3     
- Misses       4546     4547       +1     
- Partials      621      623       +2     
Impacted Files Coverage Δ
cmd/docker-driver/loki.go 0.00% <0.00%> (ø)
pkg/promtail/targets/file/filetarget.go 68.67% <0.00%> (-1.81%) ⬇️
pkg/logql/evaluator.go 92.46% <0.00%> (-0.41%) ⬇️
pkg/promtail/targets/file/tailer.go 78.40% <0.00%> (ø)
pkg/querier/queryrange/downstreamer.go 97.93% <0.00%> (+2.06%) ⬆️

Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cyriltovena cyriltovena merged commit 0ace187 into grafana:master Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Loki docker driver should not spam "ignoring empty line"
4 participants