From aa0ff643c4f6a83d5eb38f10610f11c8ca81d414 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 13 May 2019 22:12:00 +0200 Subject: [PATCH] Improve a bit the debug mode --- mat2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mat2 b/mat2 index 4b2751e..e73c498 100755 --- a/mat2 +++ b/mat2 @@ -117,6 +117,7 @@ def clean_meta(filename: str, is_lightweight: bool, policy: UnknownMemberPolicy) p.lightweight_cleaning = is_lightweight try: + logging.debug('Cleaning %s…' % filename) return p.remove_all() except RuntimeError as e: print("[-] %s can't be cleaned: %s" % (filename, e)) @@ -157,7 +158,7 @@ def main() -> int: args = arg_parser.parse_args() if args.verbose: - logging.basicConfig(level=logging.INFO) + logging.getLogger().setLevel(logging.DEBUG) if not args.files: if args.list: