Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Event bus: the queue-full log line says how many events were dropped so far

milind-soni16818f9227c5
diff --git a/server/harness/bus.ts b/server/harness/bus.ts
index 357bc323b8..931f463c61 100644
--- a/server/harness/bus.ts
+++ b/server/harness/bus.ts
@@ -222,7 +222,7 @@ export class EventBus {
this.queuedLogWarnings.set(event.threadId, warning);
// Queued before delivery: listeners may publish synchronously.
this.push(warning);
- console.error("bus: canonical event log queue is full");
+ console.error(`bus: canonical event log queue is full; dropped ${this.dropped.events} events so far`);
this.deliver(warning);
}
return;