Skip to content

Commit

Permalink
Merge pull request #24 from TMSCH/add-error-log
Browse files Browse the repository at this point in the history
Add error log when max # of retries reached
  • Loading branch information
remeh authored Nov 14, 2022
2 parents 040d288 + 0e6a7f1 commit 4b94985
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 @@ -170,6 +170,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 4b94985

Please sign in to comment.