From c103a4fab3fc0289200e1ea10732ca97afd49ab8 Mon Sep 17 00:00:00 2001 From: Pius Uzamere Date: Fri, 15 Jan 2010 12:39:18 -0500 Subject: [PATCH] improved logging --- app/controllers/questions_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/questions_controller.rb b/app/controllers/questions_controller.rb index af1d1b7..efea8a5 100644 --- a/app/controllers/questions_controller.rb +++ b/app/controllers/questions_controller.rb @@ -19,7 +19,8 @@ class QuestionsController < InheritedResources::Base def create authenticate - logger.info "vi is #{params['question']['visitor_identifier']} and local are #{params['question']['local_identifier']}. all params are #{params.inspect}" + logger.info "all params are #{params.inspect}" + logger.info "vi is #{params['question']['visitor_identifier']} and local are #{params['question']['local_identifier']}." if @question = current_user.create_question(params['question']['visitor_identifier'], :name => params['question']['name'], :local_identifier => params['question']['local_identifier'], :ideas => (params['question']['ideas'].lines.to_a.delete_if {|i| i.blank?})) respond_to do |format| format.xml { render :xml => @question.to_xml} -- libgit2 0.21.2