Fixed issue on some systems where Logger didnt have atty

This commit is contained in:
Jaret Burkett committed 2026-04-16 21:09:52 +00:00
1 parent ab1ee4df34
commit 22ea3dd620
1 file changed
+3
+3
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: