Fixed issue on some systems where Logger didnt have atty
This commit is contained in:
1 parent
ab1ee4df34
commit
22ea3dd620
1 file changed
+3
@@ -22,6 +22,9 @@ class Logger:
|
||||
self.terminal.flush()
|
||||
self.log.flush()
|
||||
|
||||
def isatty(self):
|
||||
return self.terminal.isatty()
|
||||
|
||||
|
||||
def setup_log_to_file(filename):
|
||||
if get_accelerator().is_local_main_process:
|
||||
|
||||
Reference in new issue
Block a user