Exception: CircuitSwitch::CalledNotification

Inherits:
CircuitSwitchNotification show all
Defined in:
lib/circuit_switch/notification.rb

Instance Method Summary collapse

Instance Method Details

#to_message(called_path:) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/circuit_switch/notification.rb', line 11

def to_message(called_path:)
  if ::CircuitSwitch.config.with_backtrace
    "#{message}\ncalled_path: #{called_path}\n#{backtrace.join("\n")}"
  else
    message
  end
end