Sha256: 1c2ebeb100eb3988c56f4ee5400e6df1a5470309e066510bbf5d28cca1b444eb

Contents?: true

Size: 414 Bytes

Versions: 4

Compression:

Stored size: 414 Bytes

Contents

if ActiveSupport::VERSION::STRING == "7.1.1"
  require "active_support/log_subscriber"

  module ActiveSupport
    class LogSubscriber
      # @override Rails 7.1
      def silenced?(event)
        native_log_level = @event_levels.fetch(event, ::Logger::Severity::FATAL)
        logger.nil? || SemanticLogger::Levels.index(logger.level) > SemanticLogger::Levels.index(native_log_level)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_semantic_logger-4.17.0 lib/rails_semantic_logger/extensions/active_support/log_subscriber.rb
rails_semantic_logger-4.16.0 lib/rails_semantic_logger/extensions/active_support/log_subscriber.rb
rails_semantic_logger-4.15.0 lib/rails_semantic_logger/extensions/active_support/log_subscriber.rb
rails_semantic_logger-4.14.0 lib/rails_semantic_logger/extensions/active_support/log_subscriber.rb