Sha256: 35dea105bdc79517cccb66d295bd24af85551c2ad12424b0558d9ba03a1ef0a4

Contents?: true

Size: 270 Bytes

Versions: 8

Compression:

Stored size: 270 Bytes

Contents

require 'sidekiq'

module Ezlog
  module Sidekiq
    class DeathLogger
      include LogContextHelper

      def call(job, error)
        within_log_context(JobContext.from_job_hash(job)) do
          ::Sidekiq.logger.error error
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ezlog-0.10.7 lib/ezlog/sidekiq/death_logger.rb
ezlog-0.10.5 lib/ezlog/sidekiq/death_logger.rb
ezlog-0.10.3 lib/ezlog/sidekiq/death_logger.rb
ezlog-0.10.2 lib/ezlog/sidekiq/death_logger.rb
ezlog-0.10.1 lib/ezlog/sidekiq/death_logger.rb
ezlog-0.10.0 lib/ezlog/sidekiq/death_logger.rb
ezlog-0.9.6 lib/ezlog/sidekiq/death_logger.rb
ezlog-0.9.5 lib/ezlog/sidekiq/death_logger.rb