Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Fix trialkeeper flush (#2174) (#2177)
Browse files Browse the repository at this point in the history
Co-authored-by: SparkSnail <shinaiyang@pku.edu.cn>
  • Loading branch information
chicm-ms and SparkSnail authored Mar 18, 2020
1 parent c358adc commit faf3e19
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/nni_trial_tool/log_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ def get_pipelog_reader(self):
'''
return PipeLogReader(self.logger, self.log_collection, logging.INFO)

def flush(self):
'''
Add flush in handler
'''
for handler in self.logger.handlers:
handler.flush()

def write(self, buf):
'''
Write buffer data into logger/stdout
Expand Down

0 comments on commit faf3e19

Please sign in to comment.