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