FIX: stop double reporting errors that were already reported

This commit is contained in:
Sam 2015-08-14 12:51:23 +10:00
parent 723d49d543
commit c711c06bb8

View File

@ -45,6 +45,9 @@ Sidekiq.logger.level = Logger::WARN
class SidekiqLogsterReporter < Sidekiq::ExceptionHandler::Logger
def call(ex, context = {})
return if Jobs::HandledExceptionWrapper === ex
# Pass context to Logster
fake_env = {}
context.each do |key, value|