Skip to content

Commit

Permalink
fix: dont call method on unitialized logger
Browse files Browse the repository at this point in the history
  • Loading branch information
aglover-zendesk committed Nov 22, 2021
1 parent 9e52dd3 commit 43b7409
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/fluent/plugin/out_datadog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def write(chunk)
end
end
rescue Exception => e
@logger.error("Uncaught processing exception in datadog forwarder #{e.message}")
log.error("Uncaught processing exception in datadog forwarder #{e.message}")
end
end

Expand Down Expand Up @@ -286,6 +286,8 @@ def send_retries(payload, max_retries, max_backoff)
backoff = 2 * backoff unless backoff > max_backoff
retries += 1
retry
else
raise e
end
end
end
Expand Down

0 comments on commit 43b7409

Please sign in to comment.