Skip to content

Commit

Permalink
Log a warning instead of puts, when retrying
Browse files Browse the repository at this point in the history
Fixes #26
  • Loading branch information
Mathieu Martin committed May 9, 2018
1 parent 0500802 commit c441650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logstash/outputs/loggly.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def send_event(url, message)
end # rescue

if totalRetries < @retry_count && totalRetries > 0
puts "Waiting for five seconds before retry..."
@logger.warn "Waiting for five seconds before retry..."
sleep(5)
end

Expand Down

0 comments on commit c441650

Please sign in to comment.