Sha256: 2ac4abc908f8a54b42d4bd5b4ff824d77312c6a6c37d11b3b949e6fb6dcf8526

Contents?: true

Size: 1.05 KB

Versions: 2

Compression:

Stored size: 1.05 KB

Contents

# frozen_string_literal: true

# Extracted from:
# https://github.com/rails/rails/blob/564e427c05e0d3d24ce8c3ab17ea0969011e056a/activesupport/lib/active_support/logger_thread_safe_level.rb
# Compare SHA with latest commit to check for changes:
# https://github.com/rails/rails/blob/main/activesupport/lib/active_support/logger_thread_safe_level.rb
require_relative "logger_thread_safe_level"

module ActiveSupport
  # Extracted from:
  # https://github.com/rails/rails/blob/8d1ade40dd08feb26240ba6ef7e4bed91f70864a/activesupport/lib/active_support/logger_silence.rb
  # Compare SHA with latest commit to check for changes:
  # https://github.com/rails/rails/blob/main/activesupport/lib/active_support/logger_silence.rb
  # This module only contains the included block from LoggerSilence
  module AltLoggerSilencePart1
    extend ActiveSupport::Concern

    # Thanks to ^ the included block of the original version of the module will not run.
    included do
      cattr_accessor :silencer, default: true
      include ActiveSupport::LoggerThreadSafeLevel
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activesupport-logger-1.0.1 lib/activesupport/alt_logger_silence_part1.rb
activesupport-logger-1.0.0 lib/activesupport/alt_logger_silence_part1.rb