Merge pull request #325 from QwenLM/fix/max_listeners_warning

fix: qwen logger exit handler setup
This commit is contained in:
tanzhenxin
2025-08-14 20:06:14 +08:00
committed by GitHub

View File

@@ -82,10 +82,12 @@ export class QwenLogger {
return undefined;
if (!QwenLogger.instance) {
QwenLogger.instance = new QwenLogger(config);
process.on(
'exit',
QwenLogger.instance.shutdown.bind(QwenLogger.instance),
);
}
process.on('exit', QwenLogger.instance.shutdown.bind(QwenLogger.instance));
return QwenLogger.instance;
}