From 21998cbfaece7b08efb0a6e8fec07fcf66629de1 Mon Sep 17 00:00:00 2001 From: devlikepro Date: Sun, 30 Nov 2025 18:09:15 +0700 Subject: [PATCH] [core] log event --- src/core/integrations/webhooks/WebhookSender.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/integrations/webhooks/WebhookSender.ts b/src/core/integrations/webhooks/WebhookSender.ts index bf3f00f9..7c8e0edc 100644 --- a/src/core/integrations/webhooks/WebhookSender.ts +++ b/src/core/integrations/webhooks/WebhookSender.ts @@ -71,6 +71,7 @@ export class WebhookSender { const ctx = { id: headers['X-Webhook-Request-Id'], ['event.id']: json.id, + event: json.event, url: this.url, }; this.logger.info(ctx, `Sending POST...`); @@ -133,7 +134,10 @@ export class WebhookSender { retryCondition: (error) => true, onRetry: (retryCount, error, requestConfig) => { this.logger.warn( - { id: requestConfig.headers['X-Webhook-Request-Id'] }, + { + id: requestConfig.headers['X-Webhook-Request-Id'], + event: requestConfig.headers['X-Webhook-Event'], + }, `Error sending POST request: '${error.message}'. Retrying ${retryCount}/${attempts}...`, ); },