(operation: string, error: unknown)
| 214 | main(); |
| 215 | |
| 216 | async function logStartupFailure(operation: string, error: unknown): Promise<void> { |
| 217 | log.error('startup failed', { operation, error }); |
| 218 | try { |
| 219 | await flushDiagnosticLogs(); |
| 220 | } catch { |
| 221 | // Best-effort diagnostic flush only. |
| 222 | } |
| 223 | } |
no test coverage detected