From 4d22bcfb69ae5cb2eb0f9aedeab4615b7a858045 Mon Sep 17 00:00:00 2001 From: Tiger1218 Date: Tue, 13 May 2025 17:51:48 +0800 Subject: [PATCH] Bug Fix - Set self.logger_stream to None in StdLogger.stop() (#708) --- superbench/common/utils/stdout_logging.py | 1 + 1 file changed, 1 insertion(+) diff --git a/superbench/common/utils/stdout_logging.py b/superbench/common/utils/stdout_logging.py index d127113fd..7db5b0e0d 100644 --- a/superbench/common/utils/stdout_logging.py +++ b/superbench/common/utils/stdout_logging.py @@ -78,6 +78,7 @@ def stop(self): """Restore the sys.stdout to termital.""" if self.logger_stream is not None: self.logger_stream.restore() + self.logger_stream = None def log(self, message): """Write the message into the logger.