File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
lib/rails_semantic_logger/extensions/sidekiq Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -101,8 +101,8 @@ def self.job_hash_context(job_hash)
101
101
end
102
102
103
103
# Exception is already logged by Semantic Logger during the perform call
104
- # Sidekiq <= v6.5
105
104
if defined? ( ::Sidekiq ::ExceptionHandler )
105
+ # Sidekiq <= v6.5
106
106
module ExceptionHandler
107
107
class Logger
108
108
def call ( _exception , ctx )
@@ -115,8 +115,8 @@ def call(_exception, ctx)
115
115
end
116
116
end
117
117
end
118
- # Sidekiq >= v7
119
118
elsif defined? ( ::Sidekiq ::Config )
119
+ # Sidekiq >= v7
120
120
class Config
121
121
remove_const :ERROR_HANDLER
122
122
@@ -198,7 +198,8 @@ def self.included(base)
198
198
end
199
199
end
200
200
201
- if Sidekiq ::VERSION . to_i == 4
201
+ if defined? ( ::Sidekiq ::Middleware ::Server ::Logging )
202
+ # Sidekiq v4
202
203
# Convert string to machine readable format
203
204
class Processor
204
205
def log_context ( job_hash )
You can’t perform that action at this time.
0 commit comments