Various error log improvements #100

Open
l1s5 wants to merge 6 commits from l1s5/out-of-your-element:log-improvements into main
Showing only changes of commit d5972187eb - Show all commits

Log d2m retrigger timeouts

l1s5 2026-10-25 21:31:27 +09:00
Signed by untrusted user: l1s5
GPG key ID: D0A90CC905B58D9B

View file

@ -38,7 +38,10 @@ const storage = sync.remember(() => new class {
this.resolves.set(id, (this.resolves.get(id) || []).concat(resolve)) // add to list in map value this.resolves.set(id, (this.resolves.get(id) || []).concat(resolve)) // add to list in map value
if (!this.timers.has(id)) { if (!this.timers.has(id)) {
debugRetrigger(`[retrigger] SET TIMER id = ${id}`) debugRetrigger(`[retrigger] SET TIMER id = ${id}`)
this.timers.set(id, setTimeout(() => this.resolve(id, false), 60 * 1000).unref()) // 1 minute this.timers.set(id, setTimeout(() => {
console.warn(`[retrigger] gave up waiting for ${id} to finish bridging after 1 minute, skipping ${this.resolves.get(id)?.length ?? 0} pending changes`)

I don't want to print retrigger mismatches since these are expected in normal operation. Logging this is noisy and wouldn't help to solve actual problems in retrigger. The complete logging from DEBUG_RETRIGGER is necessary for that.

I don't want to print retrigger mismatches since these are expected in normal operation. Logging this is noisy and wouldn't help to solve actual problems in retrigger. The complete logging from DEBUG_RETRIGGER is necessary for that.
this.resolve(id, false)
}, 60 * 1000).unref()) // 1 minute
} }
} }