Skip to content

Commit

Permalink
fix rescue of StandardError
Browse files Browse the repository at this point in the history
  • Loading branch information
rmoriz committed Jun 14, 2019
1 parent 04ecaa7 commit 76132c0
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 76132c0

Please sign in to comment.