Sha256: b83f7250e4cfce1c1887f3368c3096278b5d49a44af95e34366cc14475fe5701
Contents?: true
Size: 359 Bytes
Versions: 1
Compression:
Stored size: 359 Bytes
Contents
module Shhhhh class Middleware < Rails::Rack::Logger protected def call_app(request, env) # if the path looks like /assets/some/script.js, don't bother logging if env['PATH_INFO'] =~ /\A\/assets\// @app.call(env) else super end ensure ActiveSupport::LogSubscriber.flush_all! end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shhhhh-0.0.1 | lib/shhhhh/middleware.rb |