Sha256: bc1cf92c379b93ddda5b86b29796150ef73fccc6b6b914cfe9d4d975dbf506cc

Contents?: true

Size: 392 Bytes

Versions: 3

Compression:

Stored size: 392 Bytes

Contents

class Sidekiq::Merger::LoggingObserver
  def initialize(logger)
    @logger = logger
  end

  def update(time, _result, ex)
    if ex.is_a?(Concurrent::TimeoutError)
      @logger.error(
        "[Sidekiq::Grouping] (#{time}) Execution timed out\n"
      )
    elsif ex.present?
      @logger.error(
        "[Sidekiq::Grouping] Execution failed with error #{ex}\n"
      )
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sidekiq-merger-0.0.5 lib/sidekiq/merger/logging_observer.rb
sidekiq-merger-0.0.4 lib/sidekiq/merger/logging_observer.rb
sidekiq-merger-0.0.1 lib/sidekiq/merger/logging_observer.rb