Skip to content

Commit 41928fa

Browse files
authored
log webhook endpoint (#562)
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent 94f483b commit 41928fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/services/hooks/webhooks.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ const callWebhookEndpoint = async <B>(bodyObject: B): Promise<void> => {
5151
if (!sendEvent.ok) {
5252
throw new Error('Error sending event')
5353
}
54+
logger(`Called webhook endpoint ${WEBHOOK_URI} with body ${JSON.stringify(body)}`)
5455
} catch (err: unknown) {
55-
logger(`Failed to call webhook endpoint ${WEBHOOK_URI} with body ${body}`)
56+
logger(`Failed to call webhook endpoint ${WEBHOOK_URI} with body ${JSON.stringify(body)}`)
5657
}
5758
}
5859

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy