From f9f976aa4399117c6b1725275670d5badf095118 Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Thu, 14 Jul 2022 15:56:22 -0700 Subject: [PATCH] remove jobstr from the exception context, it adds a lot of noise to the log output and is redundant with :job --- lib/sidekiq/processor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sidekiq/processor.rb b/lib/sidekiq/processor.rb index 938bb703..1487f111 100644 --- a/lib/sidekiq/processor.rb +++ b/lib/sidekiq/processor.rb @@ -174,7 +174,7 @@ module Sidekiq # signals that we created a retry successfully. We can acknowlege the job. ack = true e = h.cause || h - handle_exception(e, {context: "Job raised exception", job: job_hash, jobstr: jobstr}) + handle_exception(e, {context: "Job raised exception", job: job_hash}) raise e rescue Exception => ex # Unexpected error! This is very bad and indicates an exception that got past