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

Error handling: Show data stream at "debug" level, not "warn" #1811

Merged
merged 2 commits into from
Mar 17, 2020

Conversation

JamesJJ
Copy link
Contributor

@JamesJJ JamesJJ commented Mar 17, 2020

Humbly request to change the log level of the stream dump:

I feel that most people may want to see log.warn "failed to #{req.method} #{@uri} (#{res_summary})" however may not always need to see Yajl.dump(body). So propose to move the later down to "debug" level.

This is especially relevant if fluent's input stream includes our own STDOUT/STDERR's output as is common when running in containers.

Many thanks for your time & consideration

@CLAassistant
Copy link

CLAassistant commented Mar 17, 2020

CLA assistant check
All committers have signed the CLA.

@codecov-io
Copy link

codecov-io commented Mar 17, 2020

Codecov Report

Merging #1811 into master will decrease coverage by 0.08%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1811      +/-   ##
==========================================
- Coverage   64.95%   64.86%   -0.09%     
==========================================
  Files         122      122              
  Lines        9197     9197              
==========================================
- Hits         5974     5966       -8     
- Misses       2807     2820      +13     
+ Partials      416      411       -5     
Impacted Files Coverage Δ
pkg/promtail/positions/positions.go 47.32% <0.00%> (-13.40%) ⬇️
pkg/logql/evaluator.go 91.81% <0.00%> (+0.58%) ⬆️
pkg/promtail/targets/filetarget.go 70.55% <0.00%> (+1.84%) ⬆️
pkg/promtail/targets/tailer.go 76.13% <0.00%> (+2.27%) ⬆️

@owen-d
Copy link
Member

owen-d commented Mar 17, 2020

This seems reasonable to me. @cyriltovena Thoughts? I don't have much overlap with this code.

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.

Yes I'm good with this. Can you up also the gem version ?

Signed-off-by: JamesJJ <jj@fcg.fyi>
@cyriltovena
Copy link
Contributor

Thanks @JamesJJ I'll take it from here !

@cyriltovena cyriltovena merged commit 844c54b into grafana:master Mar 17, 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.

None yet

5 participants