fix: log error on reaper endCall failure instead of swallowing

Address review feedback: log a warning when the stale call reaper
fails to end a call instead of silently discarding the error.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
JayMishra-github 2026-02-16 10:43:20 -08:00 committed by Peter Steinberger
parent 390c503b56
commit a5c94b8e7b

View File

@ -259,7 +259,9 @@ export class VoiceCallWebhookServer {
console.log(
`[voice-call] Reaping stale call ${call.callId} (age: ${Math.round(age / 1000)}s, state: ${call.state})`,
);
void this.manager.endCall(call.callId).catch(() => {});
void this.manager.endCall(call.callId).catch((err) => {
console.warn(`[voice-call] Reaper failed to end call ${call.callId}:`, err);
});
}
}
}, CHECK_INTERVAL_MS);