Permalink
Browse files

Log newlines separately to ensure the 'Started GET ...' line has a ta…

…g on the same line
  • Loading branch information...
jeremy committed Sep 26, 2012
1 parent 08ca483 commit 032c2b6b548f21ea938e3ada281a23e87f5173b7
Showing with 2 additions and 1 deletion.
  1. +2 −1 railties/lib/rails/rack/logger.rb
@@ -22,7 +22,8 @@ def call(env)
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!

0 comments on commit 032c2b6

Please sign in to comment.