Skip to content

Commit

Permalink
Merge pull request #109 from rmoriz/rmoriz/fix-chef-metric-rescue
Browse files Browse the repository at this point in the history
fix rescue of StandardError
  • Loading branch information
remeh authored Sep 30, 2019
2 parents 04ecaa7 + 76132c0 commit 08c471b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chef/handler/datadog_chef_metrics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ def emit_to_datadog(dog)
rescue Errno::ECONNREFUSED, Errno::ETIMEDOUT => e
Chef::Log.warn("Could not send metrics to Datadog. Connection error:\n" + e)
rescue StandardError => e
Chef::Log.warn("Could not determine whether chef run metrics were successfully submitted to Datadog: #{evt}. Error:\n#{e}")
Chef::Log.warn("Could not determine whether chef run metrics were successfully submitted to Datadog. Error:\n#{e}")
end
end # end class DatadogChefMetrics

0 comments on commit 08c471b

Please sign in to comment.