mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
update to bleeding-edge StreamHandler.emit
- https://github.com/iterative/dvc/pull/2333#discussion_r314950294
This commit is contained in:
+5
-3
@@ -154,11 +154,13 @@ class LoggerHandler(logging.StreamHandler):
|
||||
"""Write to Tqdm's stream so as to not break progressbars"""
|
||||
try:
|
||||
msg = self.format(record)
|
||||
Tqdm.write(msg, file=self.stream)
|
||||
Tqdm.write(
|
||||
msg, file=self.stream, end=getattr(self, "terminator", "\n")
|
||||
)
|
||||
self.flush()
|
||||
except (KeyboardInterrupt, SystemExit):
|
||||
except RecursionError:
|
||||
raise
|
||||
except: # noqa pylint: disable=bare-except
|
||||
except Exception:
|
||||
self.handleError(record)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user