Class: IIInteractor::LogSubscriber

Inherits:
ActiveSupport::LogSubscriber
  • Object
show all
Defined in:
lib/ii_interactor/log_subscriber.rb

Instance Method Summary collapse

Instance Method Details

#process_call_self(event) ⇒ Object



12
13
14
15
16
17
# File 'lib/ii_interactor/log_subscriber.rb', line 12

def process_call_self(event)
  debug do
    interactor = event.payload[:interactor]
    "  Called #{interactor.class} (#{additional_log(event)})"
  end
end

#start_call_all(event) ⇒ Object



5
6
7
8
9
10
# File 'lib/ii_interactor/log_subscriber.rb', line 5

def start_call_all(event)
  debug do
    interactor = event.payload[:interactor]
    "  Calling #{interactor.class} with #{interactor.context}"
  end
end