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