aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-07-26 12:38:50 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-07-26 12:38:50 +0000
commit65e4e5e337a4ec043411879931081e310145e293 (patch)
tree3cb70de0b8406af6c5dd6d1b27c22c0feefcc6a1
parent11a51648ad956de2b363810265d78eeebdeec836 (diff)
downloadrails-65e4e5e337a4ec043411879931081e310145e293.tar.gz
rails-65e4e5e337a4ec043411879931081e310145e293.tar.bz2
rails-65e4e5e337a4ec043411879931081e310145e293.zip
Only log status if there is one different from 200 set
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1930 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rwxr-xr-xactionpack/lib/action_controller/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb
index 0e8dcb6d1b..5fc67b17bd 100755
--- a/actionpack/lib/action_controller/base.rb
+++ b/actionpack/lib/action_controller/base.rb
@@ -634,7 +634,7 @@ module ActionController #:nodoc:
def render_file(template_path, status = nil, use_full_path = false)
add_variables_to_assigns
assert_existance_of_template_file(template_path) if use_full_path
- logger.info("Rendering #{template_path} (#{status})") if logger
+ logger.info("Rendering #{template_path}" + status ? "(#{status})" : '') if logger
render_text(@template.render_file(template_path, use_full_path), status)
end