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


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

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

Instance Method Details

#capture(_options: {}) ⇒ Object Also known as: capture!



25
26
27
# File 'lib/sapience/error_handler/silent.rb', line 25

def capture(_options: {})
  nil
end

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



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

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

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



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

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

#tags_context(_options = {}) ⇒ Object



34
35
36
# File 'lib/sapience/error_handler/silent.rb', line 34

def tags_context(_options = {})
  nil
end

#user_context(_options = {}) ⇒ Object



30
31
32
# File 'lib/sapience/error_handler/silent.rb', line 30

def user_context(_options = {})
  nil
end