-
-
Notifications
You must be signed in to change notification settings - Fork 54
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Some logging messages during backup lead to messing up the progress bar view, especially if multiple disks are
backed up and finish at different times.
New TQDM versions support a safe logging mechanism by using the logging_redirect_tqdm method:
from tqdm.contrib.logging import logging_redirect_tqdm
with logging_redirect_tqdm():
log.info("Checksum for file: [%s]:[%s]", targetFile, checksum)
this works pretty well, the Progress bars are then staying at the bottom of the terminal and new logging messages appear above.
Unfortunately, TQDM versions on older distributions do not yet support this feature (for example epel-release on rhel8, debian bullseye.. )
First version with feature:
https://github.com/tqdm/tqdm/releases/tag/v4.62.1
so to keep support for these old distributions, a wrapper needs to be setup
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request