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.