backend: Improve error logging for webhook event failures

This commit is contained in:
Carlos Santos 2025-07-15 12:03:25 +02:00
parent a10d30284b
commit 8ffc4b942f

View File

@ -171,7 +171,7 @@ export class OpenViduWebhookService {
body: JSON.stringify(data) body: JSON.stringify(data)
}); });
} catch (error) { } catch (error) {
this.logger.error(`Error sending webhook event ${data.event}: ${error}`); this.logger.error(`Error sending webhook event ${data.event} to '${webhookPreferences.url}':`, error);
throw error; throw error;
} }
} }