更新 lib/reporter.js

This commit is contained in:
QQ 2026-11-11 23:14:21 +08:00
parent 9e0c821ced
commit e5cfe30ffa
1 changed files with 3 additions and 3 deletions

View File

@ -274,7 +274,7 @@ export class Reporter {
} }
this.summaryFailed += 1; this.summaryFailed += 1;
this.lastSummaryError = describeError(result.error); this.lastSummaryError = describeError(result.error);
this.options.log(`cloud-memory: turn summary failed: ${this.lastSummaryError}`); this.options.log(`dsh-brain: turn summary failed: ${this.lastSummaryError}`);
} }
push(record) { push(record) {
this.recent.unshift(record); this.recent.unshift(record);
@ -326,7 +326,7 @@ export class Reporter {
if (this.queue.length > 200) if (this.queue.length > 200)
this.queue.shift(); this.queue.shift();
} }
this.options.log(`cloud-memory: turn report failed: ${this.lastError}`); this.options.log(`dsh-brain: turn report failed: ${this.lastError}`);
} }
/** Retry queued reports; safe to call at any time. */ /** Retry queued reports; safe to call at any time. */
async flush() { async flush() {
@ -350,7 +350,7 @@ export class Reporter {
// an unbounded queue of metadata forever. // an unbounded queue of metadata forever.
this.queue.shift(); this.queue.shift();
this.retries.delete(payload.turn_id); this.retries.delete(payload.turn_id);
this.options.log(`cloud-memory: dropping turn report after ${attempt} attempts: ${this.lastError}`); this.options.log(`dsh-brain: dropping turn report after ${attempt} attempts: ${this.lastError}`);
continue; continue;
} }
this.retries.set(payload.turn_id, attempt); this.retries.set(payload.turn_id, attempt);