mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Log newlines separately to ensure the 'Started GET ...' line has a tag on the same line
This commit is contained in:
parent
59f83153ca
commit
d1cbcd781b
1 changed files with 2 additions and 1 deletions
|
@ -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!
|
||||
|
|
Loading…
Reference in a new issue