From b4d2759fac4d374a3a7451716cc015b52e4c539c Mon Sep 17 00:00:00 2001 From: Wakee Ho Date: Tue, 4 Jun 2024 17:21:26 -0400 Subject: [PATCH] Fix @logger.error using wrong variable name --- lib/logstash/outputs/datadog_logs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/logstash/outputs/datadog_logs.rb b/lib/logstash/outputs/datadog_logs.rb index fbfac16..db42640 100644 --- a/lib/logstash/outputs/datadog_logs.rb +++ b/lib/logstash/outputs/datadog_logs.rb @@ -178,7 +178,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}") + @logger.error("Max number of retries reached, dropping message. Last exception: #{e.message}") rescue => ex if ex.is_a?(InterruptedError) raise ex