Class: Sapience::ErrorHandler::Silent

Inherits:
Sapience::ErrorHandler show all
Defined in:
lib/sapience/error_handler/silent.rb

Instance Method Summary collapse

Methods included from Descendants

#descendants

Constructor Details

#initialize(_options = {}) ⇒ Silent

level: [:trace | :debug | :info | :warn | :error | :fatal]

 Override the log level for this appender.
 Default: Sapience.config.default_level

dsn: [String]
  Url to configure Sentry-Raven.
  Default: nil


12
13
14
# File 'lib/sapience/error_handler/silent.rb', line 12

def initialize(_options = {})
  Sapience.logger.warn "Error handler is not configured. See documentation for more information."
end

Instance Method Details

#capture_exception(_exception, _payload = {}) ⇒ Object



16
17
18
# File 'lib/sapience/error_handler/silent.rb', line 16

def capture_exception(_exception, _payload = {})
  nil
end

#capture_message(_message, _payload = {}) ⇒ Object



20
21
22
# File 'lib/sapience/error_handler/silent.rb', line 20

def capture_message(_message, _payload = {})
  nil
end