Improve a bit the debug mode
This commit is contained in:
parent
dd9ead4ebe
commit
aa0ff643c4
3
mat2
3
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user