Class: Upfluence::ErrorLogger::Null
- Inherits:
-
Object
- Object
- Upfluence::ErrorLogger::Null
- Defined in:
- lib/upfluence/error_logger/null.rb
Defined Under Namespace
Classes: Middleware
Instance Method Summary collapse
- #ignore_exception(*_kls) ⇒ Object
- #middleware ⇒ Object
- #notify(error, *_args) ⇒ Object
- #user=(_user) ⇒ Object
Instance Method Details
#ignore_exception(*_kls) ⇒ Object
27 |
# File 'lib/upfluence/error_logger/null.rb', line 27 def ignore_exception(*_kls); end |
#middleware ⇒ Object
31 32 33 |
# File 'lib/upfluence/error_logger/null.rb', line 31 def middleware Middleware end |
#notify(error, *_args) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/upfluence/error_logger/null.rb', line 18 def notify(error, *_args) Upfluence.logger.error("Error: #{error.class}: #{error.}") Upfluence.logger.error("Inspect: #{error.inspect}") error.backtrace&.each do |b| Upfluence.logger.error("\t#{b}") end end |
#user=(_user) ⇒ Object
29 |
# File 'lib/upfluence/error_logger/null.rb', line 29 def user=(_user); end |