Class: UnifiedLogger::SidekiqServerMiddleware

Inherits:
Object
  • Object
show all
Defined in:
lib/unified_logger/sidekiq.rb

Instance Method Summary collapse

Instance Method Details

#call(job_instance, job_hash, queue) ⇒ Object



5
6
7
# File 'lib/unified_logger/sidekiq.rb', line 5

def call(job_instance, job_hash, queue)
  UnifiedLogger::JobLogger.log(**attrs_from(job_instance, job_hash, queue)) { yield } # rubocop:disable Style/ExplicitBlockArgument
end