Fixed issue on some systems where Logger didnt have atty

This commit is contained in:
Jaret Burkett
2026-04-16 21:09:52 +00:00
parent ab1ee4df34
commit 22ea3dd620

View File

@@ -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: