From e3973683414345e041c7707fe2df96b23561298b Mon Sep 17 00:00:00 2001 From: shmck Date: Sat, 8 Jan 2022 19:28:05 -0800 Subject: [PATCH] log webhook endpoint Signed-off-by: shmck --- src/services/hooks/webhooks.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/hooks/webhooks.ts b/src/services/hooks/webhooks.ts index b9e168c9..64ca7e66 100644 --- a/src/services/hooks/webhooks.ts +++ b/src/services/hooks/webhooks.ts @@ -51,8 +51,9 @@ const callWebhookEndpoint = async (bodyObject: B): Promise => { if (!sendEvent.ok) { throw new Error('Error sending event') } + logger(`Called webhook endpoint ${WEBHOOK_URI} with body ${JSON.stringify(body)}`) } catch (err: unknown) { - logger(`Failed to call webhook endpoint ${WEBHOOK_URI} with body ${body}`) + logger(`Failed to call webhook endpoint ${WEBHOOK_URI} with body ${JSON.stringify(body)}`) } }