diff options
author | Tobias Lütke <tobias.luetke@gmail.com> | 2005-12-22 21:16:11 +0000 |
---|---|---|
committer | Tobias Lütke <tobias.luetke@gmail.com> | 2005-12-22 21:16:11 +0000 |
commit | 373bc86d2d8bb49bd4dbef1256207f52c8dcb0ac (patch) | |
tree | e71541b56ed7195b3721728c00bce8f757e9edff /actionpack | |
parent | 4e76ae39047b369a192ee1a55cfcb4418c5c1f93 (diff) | |
download | rails-373bc86d2d8bb49bd4dbef1256207f52c8dcb0ac.tar.gz rails-373bc86d2d8bb49bd4dbef1256207f52c8dcb0ac.tar.bz2 rails-373bc86d2d8bb49bd4dbef1256207f52c8dcb0ac.zip |
only log session_id if @session object responds to .session_id.
In functional test cases you often pass in a hash as session object which doesn't have this method.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3339 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 5a169f8916..9479b93a96 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -846,7 +846,7 @@ module ActionController #:nodoc: def log_processing 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 + logger.info " Session ID: #{@session.session_id}" if @session and @session.respond_to?(:session_id) logger.info " Parameters: #{@params.inspect}" end |