Class: Sidekiq::Processor
- Inherits:
-
Object
- Object
- Sidekiq::Processor
- Defined in:
- lib/rails_semantic_logger/extensions/sidekiq/sidekiq.rb
Overview
Convert string to machine readable format
Instance Method Summary collapse
Instance Method Details
#log_context(job_hash) ⇒ Object
32 33 34 35 36 37 |
# File 'lib/rails_semantic_logger/extensions/sidekiq/sidekiq.rb', line 32 def log_context(job_hash) h = {jid: job_hash["jid"]} h[:bid] = job_hash["bid"] if job_hash["bid"] h[:queue] = job_hash["queue"] if job_hash["queue"] h end |