lib/ezlog/sidekiq/job_logger.rb in ezlog-0.2.2 vs lib/ezlog/sidekiq/job_logger.rb in ezlog-0.3.1
- old
+ new
@@ -3,10 +3,10 @@
module Ezlog
module Sidekiq
class JobLogger
include LogContextHelper
- def call(job_hash, queue)
+ def call(job_hash, _queue)
within_log_context(JobContext.from_job_hash(job_hash)) do
logger.info "#{job_hash['class']} started"
benchmark { yield }
logger.info message: "#{job_hash['class']} finished"
rescue Exception