From 4bb3379ab1ff69f818dde8299cde386b8dce05d0 Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Tue, 10 May 2022 17:57:36 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Use=20tqdm's=20write()=20instead?= =?UTF-8?q?=20of=20logging=20during=20scanning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qurator/modstool/altotool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qurator/modstool/altotool.py b/qurator/modstool/altotool.py index 8fd3635..3115f67 100755 --- a/qurator/modstool/altotool.py +++ b/qurator/modstool/altotool.py @@ -90,7 +90,7 @@ def alto_to_dict(alto, raise_errors=True): def walk(m): # XXX do this in modstool, too if os.path.isdir(m): - logger.info('Scanning directory {}'.format(m)) + tqdm.write(f'Scanning directory {m}') for f in tqdm(os.scandir(m), leave=False): if f.is_file() and not f.name.startswith('.'): yield f.path