reevoo/sapience-rb

View on GitHub
lib/sapience/extensions/active_job/logging.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true
# Patch ActiveJob logger
require "active_job/logging"

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

  private

  alias orig_tag_logger tag_logger

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