aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorPrathamesh Sonpatki <csonpatki@gmail.com>2016-02-03 13:33:31 +0530
committerPrathamesh Sonpatki <csonpatki@gmail.com>2016-02-03 15:48:38 +0530
commit7ca7c0ef289595d79ed1a59af9873f4fcc29918e (patch)
tree9019796aea3cd0040003a4577a46bffaef59e628 /actionpack
parent522099a13ffea611dfb37d4d22da62eb8cb81c12 (diff)
downloadrails-7ca7c0ef289595d79ed1a59af9873f4fcc29918e.tar.gz
rails-7ca7c0ef289595d79ed1a59af9873f4fcc29918e.tar.bz2
rails-7ca7c0ef289595d79ed1a59af9873f4fcc29918e.zip
Put some space for non-assets requests in development mode
- Fixes #23428.
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/log_subscriber.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/log_subscriber.rb b/actionpack/lib/action_controller/log_subscriber.rb
index 4c9f14e409..d1d6acac26 100644
--- a/actionpack/lib/action_controller/log_subscriber.rb
+++ b/actionpack/lib/action_controller/log_subscriber.rb
@@ -26,6 +26,8 @@ module ActionController
end
message = "Completed #{status} #{Rack::Utils::HTTP_STATUS_CODES[status]} in #{event.duration.round}ms"
message << " (#{additions.join(" | ".freeze)})" unless additions.blank?
+ message << "\n\n" if Rails.env.development?
+
message
end
end