Class: Mqjob::Formatter

Inherits:
Logger::Formatter
  • Object
show all
Defined in:
lib/mqjob.rb

Instance Method Summary collapse

Instance Method Details

#call(severity, timestamp, progname, msg) ⇒ Object



115
116
117
118
119
120
121
122
# File 'lib/mqjob.rb', line 115

def call(severity, timestamp, progname, msg)
  case msg
  when ::StandardError
    msg = [msg.message, msg&.backtrace].join(":\n")
  end

  super
end