mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
11 lines
260 B
Ruby
11 lines
260 B
Ruby
module Sidekiq
|
|
module ExceptionHandler
|
|
|
|
def handle_exception(ex, ctxHash={})
|
|
Sidekiq.logger.warn(ctxHash) if !ctxHash.empty?
|
|
Sidekiq.logger.warn ex
|
|
Sidekiq.logger.warn ex.backtrace.join("\n") unless ex.backtrace.nil?
|
|
end
|
|
|
|
end
|
|
end
|