diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-10-06 09:28:50 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-10-06 09:28:50 +0000 |
commit | 551f6e9beec301e288c1a6d253cfa5a08f609238 (patch) | |
tree | 9c17f7abca27af37e034619fb0bb9e4d339ab118 /actionpack | |
parent | 89eb53395b1f07da64a4510fe48cc79dbb775950 (diff) | |
download | rails-551f6e9beec301e288c1a6d253cfa5a08f609238.tar.gz rails-551f6e9beec301e288c1a6d253cfa5a08f609238.tar.bz2 rails-551f6e9beec301e288c1a6d253cfa5a08f609238.zip |
Don't generate strings to log unless they'll actually get logged.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7757 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rwxr-xr-x | 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 91ca05347d..719593c207 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -1097,7 +1097,7 @@ module ActionController #:nodoc: end def log_processing - if logger + if logger && logger.info? logger.info "\n\nProcessing #{controller_class_name}\##{action_name} (for #{request_origin}) [#{request.method.to_s.upcase}]" logger.info " Session ID: #{@_session.session_id}" if @_session and @_session.respond_to?(:session_id) logger.info " Parameters: #{respond_to?(:filter_parameters) ? filter_parameters(params).inspect : params.inspect}" |