lib/ddtrace/contrib/active_support/notifications/subscription.rb in ddtrace-0.30.1 vs lib/ddtrace/contrib/active_support/notifications/subscription.rb in ddtrace-0.31.0
- old
+ new
@@ -112,11 +112,11 @@
end
def run(span, name, id, payload)
run!(span, name, id, payload)
rescue StandardError => e
- Datadog::Tracer.log.debug("ActiveSupport::Notifications handler for '#{name}' failed: #{e.message}")
+ Datadog::Logger.log.debug("ActiveSupport::Notifications handler for '#{name}' failed: #{e.message}")
end
def run!(*args)
@block.call(*args)
end
@@ -137,10 +137,10 @@
def run(event, key, *args)
blocks_for(key).each do |callback|
begin
callback.call(event, key, *args)
rescue StandardError => e
- Datadog::Tracer.log.debug(
+ Datadog::Logger.log.debug(
"ActiveSupport::Notifications '#{key}' callback for '#{event}' failed: #{e.message}"
)
end
end
end