From a41d65d95fd19351170fae3db2f8fd0b9fcc23f7 Mon Sep 17 00:00:00 2001 From: jc <46619361+juancwu@users.noreply.github.com> Date: Thu, 16 May 2024 19:22:06 -0400 Subject: [PATCH] add data payload log to updateSocials function --- functions/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/src/index.ts b/functions/src/index.ts index 98f89daf..1fdd479c 100644 --- a/functions/src/index.ts +++ b/functions/src/index.ts @@ -267,6 +267,7 @@ export const updateSocials = functions.https.onCall(async (data, context) => { message: "cannot update socials", }); + functions.logger.info("Payload", { data }); functions.logger.info("Updating socials for application:", doc.id); functions.logger.info("Data in ref:", doc); @@ -281,7 +282,7 @@ export const updateSocials = functions.https.onCall(async (data, context) => { functions.logger.info("Socials updated:", data); return response(HttpStatus.OK, { message: "ok" }); } catch (error) { - functions.logger.error("Failed to update socials:", error); + functions.logger.error("Failed to update socials", { error }); throw new functions.https.HttpsError( "internal", "Failed to update socials",