Class: Sbmt::Strangler::ErrorTracker

Inherits:
Object
  • Object
show all
Defined in:
lib/sbmt/strangler/error_tracker.rb

Class Method Summary collapse

Class Method Details

.error(message, params = {}) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/sbmt/strangler/error_tracker.rb', line 7

def error(message, params = {})
  unless defined?(Sentry)
    Sbmt::Strangler.logger.log_error(message, params)
    return
  end

  logging(:error, message, params)
end