diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2008-11-06 09:59:11 +0100 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-11-06 09:59:11 +0100 |
commit | 55707da1a14814ad84f138ee98e5b5fb1a745afc (patch) | |
tree | d0082eebb85053084b20d961834e07454b2865d5 /actionpack/lib/action_controller | |
parent | 0832bc63f4047d0ad0171c411460db23450213aa (diff) | |
download | rails-55707da1a14814ad84f138ee98e5b5fb1a745afc.tar.gz rails-55707da1a14814ad84f138ee98e5b5fb1a745afc.tar.bz2 rails-55707da1a14814ad84f138ee98e5b5fb1a745afc.zip |
Dont bother logging the parameters hash if there are no parameters
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 3a7f6c0f3c..43f6c1be44 100644 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -1241,7 +1241,7 @@ module ActionController #:nodoc: parameters = respond_to?(:filter_parameters) ? filter_parameters(params) : params.dup parameters = parameters.except!(:controller, :action, :format, :_method) - logger.info " Parameters: #{parameters.inspect}" + logger.info " Parameters: #{parameters.inspect}" unless parameters.empty? end def default_render #:nodoc: |