(ctx: SystemErrorContext)
| 71 | * Safe to call without awaiting — never throws. |
| 72 | */ |
| 73 | export function notifySystemError(ctx: SystemErrorContext): void { |
| 74 | void _postSystemError(ctx).catch((err) => { |
| 75 | logger.debug({ err, source: ctx.source }, 'Failed to post system error notification'); |
| 76 | }); |
| 77 | } |
| 78 | |
| 79 | function pruneStaleEntries(now: number): void { |
| 80 | for (const [key, ts] of recentErrors) { |
no test coverage detected