From 7dd7e55cbbe6359048495c58a56c4c3b773fa642 Mon Sep 17 00:00:00 2001 From: Callum Gilchrist <43007634+CallumGilly@users.noreply.github.com> Date: Sat, 1 Oct 2022 18:17:24 +0100 Subject: [PATCH] Made body print --- functions/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/index.js b/functions/index.js index a597679..8065b02 100644 --- a/functions/index.js +++ b/functions/index.js @@ -8,7 +8,7 @@ const db = admin.firestore(); exports.panic = functions.https.onRequest((request, response) => { functions.logger.info("Panic has been issued", {structuredData: true}); //Code to make a panic goes here - functions.logger.info(`request.body=${request.body}`, {structuredData: true}); + functions.logger.info(request.body, {structuredData: true}); db.collection("panic-events").add({ patient: request.body.patient, resolved: false,