We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5901e9 commit b22648bCopy full SHA for b22648b
src/telemetry/LoggerFactory.ts
@@ -52,6 +52,12 @@ export class LoggerFactory implements Closeable {
52
},
53
});
54
55
+ // Handle stream errors to prevent uncaught exceptions when worker thread exits
56
+ const stream = (this.baseLogger as unknown as Record<symbol, NodeJS.EventEmitter>)[pino.symbols.streamSym];
57
+ stream?.on?.('error', () => {
58
+ // Silently ignore - worker thread has exited during shutdown
59
+ });
60
+
61
this.timeout = setTimeout(() => {
62
void this.cleanOldLogs();
63
}, 60 * 1000);
0 commit comments