isundil 5 жил өмнө
parent
commit
2f99ae0aee
1 өөрчлөгдсөн 4 нэмэгдсэн , 4 устгасан
  1. 4 4
      quizz.js

+ 4 - 4
quizz.js

@@ -166,7 +166,7 @@ const ScoreUtils = (function() {
 
 function initQuestionList(filename) {
     return new Promise((ok, ko) => {
-        console.log("Reloading question db");
+        console.info("Reloading question db");
         var stream = fs.createReadStream(filename),
             reader = readline.createInterface({input: stream}),
             questions = [],
@@ -314,7 +314,7 @@ QuizzBot.prototype.nextQuestionWrapper = function() {
 
 QuizzBot.prototype.nextQuestion = function() {
     this.currentQuestion = this.questions[Math.floor(Math.random() * this.questions.length)];
-    console.log(this.currentQuestion);
+    console.debug(JSON.stringify(this.currentQuestion));
     this.currentHint = 0;
     this.questionDate = Date.now();
     this.bot.sendMsg(this.room, "#" +this.currentQuestion.id +" " +this.currentQuestion.question);
@@ -670,7 +670,7 @@ QuizzBot.prototype.mySQLExport = function() {
     this.exportScores().then(() => {
         Cache.setExportTs();
         this.resetScores();
-        console.log("Successfully exported scores to MySQL");
+        console.info("Successfully exported scores to MySQL");
         this.mySQLExportWrapper();
     }).catch((errString) => {
         console.error("mySQL Export error saving to database: ", errString);
@@ -678,7 +678,7 @@ QuizzBot.prototype.mySQLExport = function() {
 }
 
 QuizzBot.prototype.exportScores = function() {
-    console.log("Start exporting scores");
+    console.info("Start exporting scores");
     return new Promise((ok, ko) => {
         if (!MySQL)
             return ko();