Skip to content

Commit

Permalink
Add error log when max # of retries reached
Browse files Browse the repository at this point in the history
  • Loading branch information
TMSCH committed Jul 21, 2021
1 parent 26a93ee commit 0e6a7f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/logstash/outputs/datadog_logs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ def send_retries(payload, max_retries, max_backoff)
retries += 1
retry
end
@logger.error("Max number of retries reached, dropping message. Last exception: #{ex.message}")
rescue => ex
@logger.error("Unmanaged exception while sending log to datadog #{ex.message}")
end
Expand Down

0 comments on commit 0e6a7f1

Please sign in to comment.