diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2012-09-25 20:27:26 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2012-09-27 10:46:50 -0700 |
commit | 032c2b6b548f21ea938e3ada281a23e87f5173b7 (patch) | |
tree | fa0c39c9448f40decb6a74e84156cba94dbecfdf /railties/lib/rails/rack | |
parent | 08ca48379e233dc7ca5186bfa0933648c2d84a25 (diff) | |
download | rails-032c2b6b548f21ea938e3ada281a23e87f5173b7.tar.gz rails-032c2b6b548f21ea938e3ada281a23e87f5173b7.tar.bz2 rails-032c2b6b548f21ea938e3ada281a23e87f5173b7.zip |
Log newlines separately to ensure the 'Started GET ...' line has a tag on the same line
Diffstat (limited to 'railties/lib/rails/rack')
-rw-r--r-- | railties/lib/rails/rack/logger.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/rails/rack/logger.rb b/railties/lib/rails/rack/logger.rb index 9ff94e74b3..798fb32677 100644 --- a/railties/lib/rails/rack/logger.rb +++ b/railties/lib/rails/rack/logger.rb @@ -22,7 +22,8 @@ module Rails def call_app(env) request = ActionDispatch::Request.new(env) path = request.filtered_path - Rails.logger.info "\n\nStarted #{request.request_method} \"#{path}\" for #{request.ip} at #{Time.now.to_default_s}" + Rails.logger.info "\n\n" + Rails.logger.info "Started #{request.request_method} \"#{path}\" for #{request.ip} at #{Time.now.to_default_s}" @app.call(env) ensure ActiveSupport::LogSubscriber.flush_all! |