instance method
emit_debug_event
Ruby on Rails 8.1.2
Since v8.1.2Signature
emit_debug_event(name, payload = nil, caller_depth: 1, **kwargs)
Like emit_event, but only emits when the event reporter is in debug mode
Parameters
-
namereq -
payloadopt = nil -
caller_depthkey = 1 -
kwargskeyrest
Source
# File activesupport/lib/active_support/structured_event_subscriber.rb, line 82
def emit_debug_event(name, payload = nil, caller_depth: 1, **kwargs)
ActiveSupport.event_reporter.debug(name, payload, caller_depth: caller_depth + 1, **kwargs)
rescue => e
handle_event_error(name, e)
end
Defined in activesupport/lib/active_support/structured_event_subscriber.rb line 82
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::StructuredEventSubscriber