aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2012-09-25 20:27:26 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2012-09-25 20:27:26 -0700
commitd1cbcd781bdb974c4232c3d63e3d1b4d1f9c4bd5 (patch)
treebdeebc7c3ff07a2b35f3f5dc9fa8033bf8469f14
parent59f83153cac05d149ce782c2ce998489a8e212df (diff)
downloadrails-d1cbcd781bdb974c4232c3d63e3d1b4d1f9c4bd5.tar.gz
rails-d1cbcd781bdb974c4232c3d63e3d1b4d1f9c4bd5.tar.bz2
rails-d1cbcd781bdb974c4232c3d63e3d1b4d1f9c4bd5.zip
Log newlines separately to ensure the 'Started GET ...' line has a tag on the same line
-rw-r--r--railties/lib/rails/rack/logger.rb3
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!