lib/sidekiq/haron/exception_logger.rb in sidekiq-haron-0.1.6 vs lib/sidekiq/haron/exception_logger.rb in sidekiq-haron-0.1.7
- old
+ new
@@ -1,11 +1,11 @@
require 'sidekiq/exception_handler'
module Sidekiq
module Haron
- class ExceptionLogger < Sidekiq::ExceptionHandler::Logger
+ class ExceptionLogger < Sidekiq::Logger
def self.install
- Sidekiq.error_handlers.delete_if{|eh| eh.is_a? Sidekiq::ExceptionHandler::Logger }
+ Sidekiq.error_handlers.delete_if{|eh| eh.is_a? Sidekiq::Logger }
Sidekiq.error_handlers.unshift Sidekiq::Haron::ExceptionLogger.new
end
def call(ex, ctxHash)
jid = ctxHash.present? && ctxHash[:job]['jid']
\ No newline at end of file