instance method emit_debug_event

Ruby on Rails 8.1.2

Since v8.1.2

Signature

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

name req
payload opt = nil
caller_depth key = 1
kwargs keyrest
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close