From e67f1f78c43b2723f5d903a5d9dd9b74e04e01f9 Mon Sep 17 00:00:00 2001 From: Ralf Teusner Date: Fri, 9 Sep 2016 14:11:38 +0200 Subject: [PATCH] cleanup logging statements. --- app/controllers/exercises_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/exercises_controller.rb b/app/controllers/exercises_controller.rb index cbd5266a..75451eb3 100644 --- a/app/controllers/exercises_controller.rb +++ b/app/controllers/exercises_controller.rb @@ -247,13 +247,12 @@ class ExercisesController < ApplicationController end def redirect_after_submit - Rails.logger.error('Score ' + @submission.normalized_score.to_s) + Rails.logger.debug('Score ' + @submission.normalized_score.to_s) if @submission.normalized_score == 1.0 # if user has an own rfc, redirect to it and message him to clean up and accept the answer. # else: show open rfc for same exercise if rfc = RequestForComment.unsolved.where(exercise_id: @submission.exercise).order("RANDOM()").first - Rails.logger.error('rfc: ' + rfc.to_s) # set a message that informs the user that his score was perfect and help in RFC is greatly appreciated. flash[:notice] = I18n.t('exercises.submit.full_score_redirect_to_rfc')