更新 lib/reporter.js
This commit is contained in:
parent
9e0c821ced
commit
e5cfe30ffa
|
|
@ -274,7 +274,7 @@ export class Reporter {
|
|||
}
|
||||
this.summaryFailed += 1;
|
||||
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) {
|
||||
this.recent.unshift(record);
|
||||
|
|
@ -326,7 +326,7 @@ export class Reporter {
|
|||
if (this.queue.length > 200)
|
||||
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. */
|
||||
async flush() {
|
||||
|
|
@ -350,7 +350,7 @@ export class Reporter {
|
|||
// an unbounded queue of metadata forever.
|
||||
this.queue.shift();
|
||||
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;
|
||||
}
|
||||
this.retries.set(payload.turn_id, attempt);
|
||||
|
|
|
|||
Loading…
Reference in New Issue