Class: Muffler::Rails::Logger

Inherits:
Rails::Rack::Logger
  • Object
show all
Defined in:
lib/muffler/rails/logger.rb

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/muffler/rails/logger.rb', line 6

def call(env)
  if Muffler.muffle?(env)
    Muffler.muffle(::Rails.logger) { super }
  else
    super
  end
end