chore(sf): drop chatty backfill success log
runEmbeddingBackfill fires on every agent_end (per-turn). When the gateway is online and a project produces memories, every turn would write a "[sf:memory-embeddings] WARN: backfill: embedded N memories" line — successes labeled as warnings, repeating on every cycle. That both inflates the stderr stream and misleads grep-for-WARN diagnostics. Successes are routine; the function's return value carries the count when a caller cares. Failures still log (throttled to 60s) via the existing path. Net effect: the embedding pipeline runs silently in the happy path. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
05a326a294
commit
0ee94f21be
1 changed files with 3 additions and 6 deletions
|
|
@ -385,12 +385,9 @@ export async function runEmbeddingBackfill(opts?: {
|
|||
if (count === 0) break; // Stop early to avoid loops on transient saves
|
||||
embedded += count;
|
||||
}
|
||||
if (embedded > 0) {
|
||||
logWarning(
|
||||
"memory-embeddings",
|
||||
`backfill: embedded ${embedded} memories via ${cfg.embeddingModel}`,
|
||||
);
|
||||
}
|
||||
// Successes are routine and fire on every agent_end — silent. The
|
||||
// caller (`runEmbeddingBackfill` consumer) gets the count via the
|
||||
// return value; failures still log via the throttled path above.
|
||||
return embedded;
|
||||
} finally {
|
||||
backfillInFlight = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue