From 94ad898a862988d3237abc159a74bb10b5d3252f Mon Sep 17 00:00:00 2001 From: Bastian Venthur Date: Sun, 7 Aug 2022 21:10:51 +0200 Subject: [PATCH] added logger messanges on deletion --- blag/blag.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blag/blag.py b/blag/blag.py index 151e02e..ae6e624 100644 --- a/blag/blag.py +++ b/blag/blag.py @@ -263,12 +263,14 @@ def build(args): for filename in filenames: dst = os.path.abspath(f'{root}/{filename}') if dst not in known_targets: + logger.info(f'deleting {dst}') os.remove(dst) else: known_targets.remove(dst) for dirname in dirnames: dst = os.path.abspath(f'{root}/{dirname}') if dst not in known_targets: + logger.info(f'deleting {dst}') shutil.rmtree(dst) else: known_targets.remove(dst)