Module: ExceptionGateway::Vendors

Included in:
Gateway
Defined in:
lib/exception_gateway/vendors/bugsnag.rb

Instance Method Summary collapse

Instance Method Details

#bugsnag_alert(msg, options = {}) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/exception_gateway/vendors/bugsnag.rb', line 3

def bugsnag_alert(msg, options={})
  if ExceptionGateway.config.bugsnag_alert_api_key
    Bugsnag.notify(RuntimeError.new(msg), {:details => options, :api_key => ExceptionGateway.config.bugsnag_alert_api_key})
  else
    Bugsnag.notify(RuntimeError.new(msg), {:details => options})
  end
end

#bugsnag_transmit(exception) ⇒ Object



11
12
13
# File 'lib/exception_gateway/vendors/bugsnag.rb', line 11

def bugsnag_transmit(exception)
  Bugsnag.notify(exception)
end