mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 11:10:20 +01:00
logging screen output to file (#479)
Co-authored-by: Gal Leibovich <gal.leibovich@intel.com>
This commit is contained in:
@@ -458,7 +458,7 @@ class Timer(object):
|
||||
self.start = time.time()
|
||||
|
||||
def __exit__(self, type, value, traceback):
|
||||
print(self.prefix, time.time() - self.start)
|
||||
screen.print(self.prefix, time.time() - self.start)
|
||||
|
||||
|
||||
class ReaderWriterLock(object):
|
||||
@@ -516,7 +516,7 @@ class ProgressBar(object):
|
||||
sys.stdout.flush()
|
||||
|
||||
def close(self):
|
||||
print("")
|
||||
screen.print("")
|
||||
|
||||
|
||||
def start_shell_command_and_wait(command):
|
||||
|
||||
Reference in New Issue
Block a user