Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 373bc86d2d8bb49bd4dbef1256207f52c8dcb0ac 1 parent 4e76ae3
Tobias Lütke authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_controller/base.rb
View
2  actionpack/lib/action_controller/base.rb
@@ -846,7 +846,7 @@ def initialize_current_url
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
Please sign in to comment.
Something went wrong with that request. Please try again.