Class: Upfluence::ErrorLogger::Null

Inherits:
Object
  • Object
show all
Defined in:
lib/upfluence/error_logger/null.rb

Defined Under Namespace

Classes: Middleware

Instance Method Summary collapse

Instance Method Details

#ignore_exception(*_kls) ⇒ Object



27
# File 'lib/upfluence/error_logger/null.rb', line 27

def ignore_exception(*_kls); end

#middlewareObject



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.message}")
  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