diff --git a/chef-handler-datadog.gemspec b/chef-handler-datadog.gemspec index f2f677d..e7c80d5 100644 --- a/chef-handler-datadog.gemspec +++ b/chef-handler-datadog.gemspec @@ -15,7 +15,7 @@ Gem::Specification.new do |gem| gem.require_paths = ['lib'] gem.extra_rdoc_files = ['README.md', 'LICENSE.txt'] - gem.add_dependency 'dogapi', '>= 1.31' + gem.add_dependency 'dogapi', '= 1.36.0' gem.add_development_dependency 'appraisal', '~> 2.0.1' gem.add_development_dependency 'bundler' diff --git a/lib/chef/handler/datadog.rb b/lib/chef/handler/datadog.rb index c283e1b..8422b9b 100644 --- a/lib/chef/handler/datadog.rb +++ b/lib/chef/handler/datadog.rb @@ -79,7 +79,7 @@ def send_report_to_datadog(dog) @event.emit_to_datadog dog @tags.send_update_to_datadog dog rescue => e - Chef::Log.error("Could not send/emit to Datadog:\n" + e) + Chef::Log.error("Could not send/emit to Datadog:\n" + e.to_s) Chef::Log.error('Event data to be submitted was:') Chef::Log.error(@event.event_title) Chef::Log.error(@event.event_body)