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

* Avoid dumping the whole stream at warn level when upstream unavailable

Signed-off-by: JamesJJ <jj@fcg.fyi>

* Version 1.2.10

Signed-off-by: JamesJJ <jj@fcg.fyi>
pull/1816/head
JamesJJ 5 years ago committed by GitHub
parent ca19683511
commit 844c54b181
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      fluentd/fluent-plugin-grafana-loki/fluent-plugin-grafana-loki.gemspec
  2. 2
      fluentd/fluent-plugin-grafana-loki/lib/fluent/plugin/out_loki.rb

@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__)
Gem::Specification.new do |spec|
spec.name = 'fluent-plugin-grafana-loki'
spec.version = '1.2.9'
spec.version = '1.2.10'
spec.authors = %w[woodsaj briangann cyriltovena]
spec.email = ['awoods@grafana.com', 'brian@grafana.com', 'cyril.tovena@grafana.com']

@ -151,7 +151,7 @@ module Fluent
'res=nil'
end
log.warn "failed to #{req.method} #{@uri} (#{res_summary})"
log.warn Yajl.dump(body)
log.debug Yajl.dump(body)
end
end

Loading…
Cancel
Save