Class: Ezlog::Sidekiq::DeathLogger
- Inherits:
-
Object
- Object
- Ezlog::Sidekiq::DeathLogger
- Includes:
- LogContextHelper
- Defined in:
- lib/ezlog/sidekiq/death_logger.rb
Instance Method Summary collapse
Methods included from LogContextHelper
#add_to_log_context, #within_log_context
Instance Method Details
#call(job, error) ⇒ Object
8 9 10 11 12 |
# File 'lib/ezlog/sidekiq/death_logger.rb', line 8 def call(job, error) within_log_context(JobContext.from_job_hash(job)) do ::Sidekiq.logger.error error end end |