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
commit c33d162ff2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;
}