chore(tlon): add logging for event acks

This commit is contained in:
Hunter Miller
2026-02-19 13:10:14 -06:00
committed by Josh Lehman
parent a0c3339c75
commit 2525498fea

View File

@@ -273,6 +273,9 @@ export class UrbitSSEClient {
if (eventId > this.lastHeardEventId) {
this.lastHeardEventId = eventId;
if (eventId - this.lastAcknowledgedEventId > this.ackThreshold) {
this.logger.log?.(
`[SSE] Acking event ${eventId} (last acked: ${this.lastAcknowledgedEventId})`,
);
this.ack(eventId).catch((err) => {
this.logger.error?.(`Failed to ack event ${eventId}: ${String(err)}`);
});