Sha256: 00f742f3c9c6f7b946a395e6fd96e2b5f6ec17fd6ef648ce6464a2000fb97893
Contents?: true
Size: 645 Bytes
Versions: 3
Compression:
Stored size: 645 Bytes
Contents
# frozen_string_literal: true module Loggery module Sidekiq module Setup def self.setup ::Sidekiq::Logging.logger = Rails.logger ::Sidekiq.configure_server do |config| config.server_middleware do |chain| chain.add Loggery::Metadata::Middleware::Sidekiq end # Sidekiq by default logs deeply nested json which throws off the json logger and elasticsearch. # We therefore want to use our own logger that serializes this hash config.error_handlers.clear config.error_handlers << SidekiqExceptionLogger.new end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
loggery-0.2.1 | lib/loggery/sidekiq/setup.rb |
loggery-0.2.0 | lib/loggery/sidekiq/setup.rb |
loggery-0.1.0 | lib/loggery/sidekiq/setup.rb |