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:
parent
390c503b56
commit
a5c94b8e7b
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user