Sha256: 038f80acdfe02fcc2300e95dc328a3302e0c60fe3ba32a5436a8fd0b0dcf4bc2

Contents?: true

Size: 330 Bytes

Versions: 5

Compression:

Stored size: 330 Bytes

Contents

# Patch ActiveJob logger
require "active_job/logging"

module ActiveJob
  module Logging
    include SemanticLogger::Loggable

    private

    undef_method :tag_logger
    def tag_logger(*tags, &block)
      if logger.respond_to?(:tagged)
        logger.tagged(*tags, &block)
      else
        yield
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails_semantic_logger-4.17.0 lib/rails_semantic_logger/extensions/active_job/logging.rb
rails_semantic_logger-4.16.0 lib/rails_semantic_logger/extensions/active_job/logging.rb
rails_semantic_logger-4.15.0 lib/rails_semantic_logger/extensions/active_job/logging.rb
rails_semantic_logger-4.14.0 lib/rails_semantic_logger/extensions/active_job/logging.rb
rails_semantic_logger-4.13.0 lib/rails_semantic_logger/extensions/active_job/logging.rb