fix: misleading log on call creation (#865)

This commit is contained in:
Anton Voylenko
2024-08-15 16:15:08 +03:00
committed by GitHub
parent 12174359f2
commit c131fceea7

View File

@@ -218,7 +218,7 @@ router.post('/',
} }
if (!app.notifier && app.call_status_hook) { if (!app.notifier && app.call_status_hook) {
app.notifier = new HttpRequestor(logger, account.account_sid, app.call_status_hook, account.webhook_secret); app.notifier = new HttpRequestor(logger, account.account_sid, app.call_status_hook, account.webhook_secret);
logger.debug({call_hook: app.call_hook}, 'creating http client for call status hook'); logger.debug({call_status_hook: app.call_status_hook}, 'creating http client for call status hook');
} }
else if (!app.notifier) { else if (!app.notifier) {
logger.debug('creating null call status hook'); logger.debug('creating null call status hook');