Sha256: d72b756ffd9551845d1d1290ac04ff1836f77285b2e653679fd45489d897d62f

Contents?: true

Size: 446 Bytes

Versions: 7

Compression:

Stored size: 446 Bytes

Contents

# frozen_string_literal: true
# Drop rack Started message to debug level message
class Rails::Rack::Logger # rubocop:disable ClassAndModuleChildren

  private

  module Extensions
    def info(*args, &block)
      debug(*args, &block)
    end

    def info?
      debug?
    end
  end

  alias orig_logger logger

  def logger
    @logger ||= begin
      logger = Sapience["Rails"]
      logger.extend(Extensions)
      logger
    end
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sapience-2.7.0 lib/sapience/extensions/rails/rack/logger_info_as_debug.rb
sapience-2.6.1 lib/sapience/extensions/rails/rack/logger_info_as_debug.rb
sapience-2.6.0 lib/sapience/extensions/rails/rack/logger_info_as_debug.rb
sapience-2.5.4 lib/sapience/extensions/rails/rack/logger_info_as_debug.rb
sapience-2.5.3 lib/sapience/extensions/rails/rack/logger_info_as_debug.rb
sapience-2.5.2 lib/sapience/extensions/rails/rack/logger_info_as_debug.rb
sapience-2.5.0 lib/sapience/extensions/rails/rack/logger_info_as_debug.rb