Sha256: 70e104cbf58b586af320d7f977c5c07cb217265c0a10dcdd3eefe02a48bee7b6
Contents?: true
Size: 621 Bytes
Versions: 3
Compression:
Stored size: 621 Bytes
Contents
# frozen_string_literal: true require 'rails/rack/logger' module Rails module Rack # Overwrites defaults of Rails::Rack::Logger that cause # unnecessary logging. # This effectively removes the log lines from the log # that say: # Started GET / for 192.168.2.1... class Logger # Overwrites Rails 3.2 code that logs new requests def call_app(*args) env = args.last @app.call(env) ensure ActiveSupport::LogSubscriber.flush_all! end # Overwrites Rails 3.0/3.1 code that logs new requests def before_dispatch(env); end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
logstasher-2.1.5 | lib/logstasher/rails_ext/rack/logger.rb |
logstasher-2.1.3 | lib/logstasher/rails_ext/rack/logger.rb |
logstasher-2.1.2 | lib/logstasher/rails_ext/rack/logger.rb |