1
0
Fork 0

Improve a bit the debug mode

This commit is contained in:
jvoisin 2019-05-13 22:12:00 +02:00
parent dd9ead4ebe
commit aa0ff643c4
1 changed files with 2 additions and 1 deletions

3
mat2
View File

@ -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: