We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cca0312 commit 34ffd8eCopy full SHA for 34ffd8e
lib/rails_semantic_logger/sidekiq/defaults.rb
@@ -2,7 +2,8 @@ module RailsSemanticLogger
2
module Sidekiq
3
module Defaults
4
# Prevent exception logging during standard error handling since the Job Logger below already logs the exception.
5
- if ::Sidekiq::VERSION.to_f < 7.2
+ if ::Sidekiq::VERSION.to_f < 7.1 ||
6
+ (::Sidekiq::VERSION.to_f == 7.1 && ::Sidekiq::VERSION.split(".").last.to_i < 6)
7
ERROR_HANDLER = ->(ex, ctx) do
8
unless ctx.empty?
9
job_hash = ctx[:job] || {}
0 commit comments