Skip to content

Commit

Permalink
add data payload log to updateSocials function
Browse files Browse the repository at this point in the history
  • Loading branch information
juancwu committed May 16, 2024
1 parent 2e4fb9d commit a41d65d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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",
Expand Down

0 comments on commit a41d65d

Please sign in to comment.