Improve log tracking to better handle tqdm
@@ -53,7 +53,9 @@ class LogStreamHandler(logging.Handler):
def format_record(self, record):
message = ""
if record.msg:
- message = record.msg % record.args
+ message = record.msg
+ if record.args:
+ message %= record.args
return V1Log.process_log_line(
value=message,
timestamp=to_datetime(record.created),
