Skip to content

Commit

Permalink
Merge pull request #76 from microsoft/master
Browse files Browse the repository at this point in the history
Fix trialkeeper flush (microsoft#2174)
  • Loading branch information
chicm-ms authored Mar 18, 2020
2 parents 0439bc1 + 4a07f9e commit 8b5613a
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 8b5613a

Please sign in to comment.