Various error log improvements #100
1 changed files with 4 additions and 1 deletions
Log d2m retrigger timeouts
commit
d5972187eb
|
|
@ -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`)
|
||||||
|
|
|||||||
|
this.resolve(id, false)
|
||||||
|
}, 60 * 1000).unref()) // 1 minute
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue
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.