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:
Mikael Hugo 2026-05-02 23:25:35 +02:00
parent 05a326a294
commit 0ee94f21be

View file

@ -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;