Sha256: 09412e5b35a8f3aa0335528c0b032fb84ba36b318f2ff6437b5596f70fc950f7

Contents?: true

Size: 284 Bytes

Versions: 44

Compression:

Stored size: 284 Bytes

Contents

# Patch ActiveJob logger
require "active_job/logging"

module ActiveJob::Logging # rubocop:disable ClassAndModuleChildren
  include Sapience::Loggable

  private

  alias_method :orig_tag_logger, :tag_logger

  def tag_logger(*tags, &block)
    logger.tagged(*tags, &block)
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
sapience-0.2.8 lib/sapience/extensions/active_job/logging.rb
sapience-0.2.7 lib/sapience/extensions/active_job/logging.rb
sapience-0.2.6 lib/sapience/extensions/active_job/logging.rb
sapience-0.2.5 lib/sapience/extensions/active_job/logging.rb