Class: PikaQue::Reporters::LogReporter

Inherits:
Object
  • Object
show all
Defined in:
lib/pika_que/reporters/log_reporter.rb

Instance Method Summary collapse

Instance Method Details

#report(ex, clazz, msg) ⇒ Object



5
6
7
8
9
# File 'lib/pika_que/reporters/log_reporter.rb', line 5

def report(ex, clazz, msg)
  PikaQue.logger.debug "error processing <#{msg}>"
  PikaQue.logger.error "Exception #{ex.class} in #{clazz}: #{ex.message}" unless ex.nil?
  PikaQue.logger.error ex.backtrace.join("\n") unless ex.nil? || ex.backtrace.nil?
end