Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobasco99 committed Jun 26, 2024
1 parent 928f4e1 commit f96f2e3
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,14 @@ private Response AskNextQuestion(String surveyDoneString, boolean firstMessage){
}
this.lastquestion = nextId;

System.out.println("check requirements...");

// checking if requirements to ask next questions are met
if(!this.currentSurvey.getQuestionByQid(nextId, this.language).isRelevant(this)){
// requirement is not met, so skipping question
System.out.println("check done...");
if(isSurveyDone()){
System.out.println("done...");
return surveyDone(surveyDoneString);
}
nextId = this.unaskedQuestions.get(0);
Expand Down Expand Up @@ -1400,6 +1404,7 @@ else if(!this.currentSubquestionAnswers.isEmpty() && lastQuestion.getType().equa
return res;
}
else if(res == Response.noContent().build()){
System.out.println("Waiting for comment for single choice question...");
// waiting for comment for single choice question
return res;
}
Expand All @@ -1408,7 +1413,7 @@ else if(res != null){
return res;
}
}

System.out.println("Calculating next question...");
// Calculate next question to ask
res = surveyDone(surveyDoneString);
if(res != null){
Expand Down

0 comments on commit f96f2e3

Please sign in to comment.