diff --git a/src/lib/addons/webhook.ts b/src/lib/addons/webhook.ts index e201523f2654..d64c4f1ac069 100644 --- a/src/lib/addons/webhook.ts +++ b/src/lib/addons/webhook.ts @@ -103,16 +103,21 @@ export default class Webhook extends Addon { state = 'failed'; const failedMessage = `Webhook request failed with status code: ${res.status}.`; stateDetails.push(failedMessage); - if (this.flagResolver.isEnabled('addonUsageMetrics')) { - this.eventBus.emit(ADDON_EVENTS_HANDLED, { - result: state, - destination: 'webhook', - }); - } - this.logger.warn(failedMessage); } + if (this.flagResolver.isEnabled('addonUsageMetrics')) { + this.eventBus.emit(ADDON_EVENTS_HANDLED, { + result: state, + destination: 'webhook', + }); + } + + const domain = new URL(url).hostname; + this.logger.info(`Webhook invoked`, { + domain, + }); + this.registerEvent({ integrationId, state,