Sha256: becd1e070685b29d666ad676efd913964857cc532ca602eec3ecee2ab9484c9a

Contents?: true

Size: 283 Bytes

Versions: 25

Compression:

Stored size: 283 Bytes

Contents

require 'sidekiq'

module Ezlog
  module Sidekiq
    class ErrorLogger
      include LogContextHelper

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

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
ezlog-0.10.7 lib/ezlog/sidekiq/error_logger.rb
ezlog-0.10.5 lib/ezlog/sidekiq/error_logger.rb
ezlog-0.10.3 lib/ezlog/sidekiq/error_logger.rb
ezlog-0.10.2 lib/ezlog/sidekiq/error_logger.rb
ezlog-0.10.1 lib/ezlog/sidekiq/error_logger.rb
ezlog-0.10.0 lib/ezlog/sidekiq/error_logger.rb
ezlog-0.9.6 lib/ezlog/sidekiq/error_logger.rb
ezlog-0.9.5 lib/ezlog/sidekiq/error_logger.rb
ezlog-0.9.1 lib/ezlog/sidekiq/error_logger.rb
ezlog-0.9.0 lib/ezlog/sidekiq/error_logger.rb
ezlog-0.8.0 lib/ezlog/sidekiq/error_logger.rb
ezlog-0.7.1 lib/ezlog/sidekiq/error_logger.rb
ezlog-0.7.0 lib/ezlog/sidekiq/error_logger.rb
ezlog-0.6.0 lib/ezlog/sidekiq/error_logger.rb
ezlog-0.5.3 lib/ezlog/sidekiq/error_logger.rb
ezlog-0.5.2 lib/ezlog/sidekiq/error_logger.rb
ezlog-0.5.1 lib/ezlog/sidekiq/error_logger.rb
ezlog-0.5.0 lib/ezlog/sidekiq/error_logger.rb
ezlog-0.4.0 lib/ezlog/sidekiq/error_logger.rb
ezlog-0.3.5 lib/ezlog/sidekiq/error_logger.rb