Skip to content

Commit

Permalink
move every message logging to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jlambert121 committed Oct 12, 2017
1 parent 73bfc96 commit cd36a1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/logstash/outputs/datadog_metrics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def receive(event)
end
dd_metrics['tags'] = tagz if tagz

@logger.info("Queueing event", :event => dd_metrics)
@logger.debug("Queueing event", :event => dd_metrics)
buffer_receive(dd_metrics)
end # def receive

Expand All @@ -98,7 +98,7 @@ def flush(events, final=false)
request.body = series_to_json(dd_series)
request.add_field("Content-Type", 'application/json')
response = @client.request(request)
@logger.info("DD convo", :request => request.inspect, :response => response.inspect)
@logger.debug("DD convo", :request => request.inspect, :response => response.inspect)
raise unless response.code == '202'
rescue Exception => e
@logger.warn("Unhandled exception", :request => request.inspect, :response => response.inspect, :exception => e.inspect)
Expand Down

0 comments on commit cd36a1f

Please sign in to comment.