From 19be8611d80ec73adcfd41faa367e6511d2fefbd Mon Sep 17 00:00:00 2001 From: Matthew Grove Date: Mon, 14 Feb 2022 19:53:01 +0000 Subject: [PATCH] [FIX] attempted fix for functions logging --- functions/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/index.js b/functions/index.js index 38bda0c..e8369f7 100644 --- a/functions/index.js +++ b/functions/index.js @@ -171,14 +171,14 @@ exports.createProgress = functions.https.onCall((data, context) => { if (typeof data.ignoreCaps === "undefined") { data.ignoreCaps = false; - functions.logger.log("ignoreCaps not provided - using default value of false"); + console.log("ignoreCaps not provided - using default value of false"); } else if (typeof data.ignoreCaps !== "boolean") { throw new functions.https.HttpsError("invalid-argument", "showNumberOfAnswers must be a boolean"); } if (typeof data.showNumberOfAnswers === "undefined") { data.showNumberOfAnswers = false; - functions.logger.log("showNumberOfAnswers not provided - using default value of false"); + console.log("showNumberOfAnswers not provided - using default value of false"); } else if (typeof data.showNumberOfAnswers !== "boolean") { throw new functions.https.HttpsError("invalid-argument", "showNumberOfAnswers must be a boolean"); }