mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
fix: remove redundant info log on retry, enrich error log with attempt count
This commit is contained in:
@@ -227,8 +227,7 @@ export namespace IngestQueue {
|
||||
|
||||
const delay = backoff(count)
|
||||
retry.set(sessionId, { count, until: now() + delay })
|
||||
options.log.info?.("ingest flush retry", { sessionId, attempt: count, delayMs: delay })
|
||||
options.log.error("share sync failed", { sessionId, error: "network", retryInMs: delay })
|
||||
options.log.error("share sync failed", { sessionId, error: "network", attempt: count, retryInMs: delay })
|
||||
enqueue(sessionId, items, "fill", now() + delay)
|
||||
return
|
||||
}
|
||||
@@ -272,11 +271,11 @@ export namespace IngestQueue {
|
||||
|
||||
const delay = backoff(count)
|
||||
retry.set(sessionId, { count, until: now() + delay })
|
||||
options.log.info?.("ingest flush retry", { sessionId, attempt: count, delayMs: delay })
|
||||
options.log.error("share sync failed", {
|
||||
sessionId,
|
||||
status: response.status,
|
||||
statusText: response.statusText,
|
||||
attempt: count,
|
||||
retryInMs: delay,
|
||||
})
|
||||
enqueue(sessionId, items, "fill", now() + delay)
|
||||
|
||||
Reference in New Issue
Block a user