mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-23 00:48:12 +00:00
chore(tlon): add logging for event acks
This commit is contained in:
committed by
Josh Lehman
parent
a0c3339c75
commit
2525498fea
@@ -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)}`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user