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
|
p.lightweight_cleaning = is_lightweight
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
logging.debug('Cleaning %s…' % filename)
|
||||||
return p.remove_all()
|
return p.remove_all()
|
||||||
except RuntimeError as e:
|
except RuntimeError as e:
|
||||||
print("[-] %s can't be cleaned: %s" % (filename, e))
|
print("[-] %s can't be cleaned: %s" % (filename, e))
|
||||||
@ -157,7 +158,7 @@ def main() -> int:
|
|||||||
args = arg_parser.parse_args()
|
args = arg_parser.parse_args()
|
||||||
|
|
||||||
if args.verbose:
|
if args.verbose:
|
||||||
logging.basicConfig(level=logging.INFO)
|
logging.getLogger().setLevel(logging.DEBUG)
|
||||||
|
|
||||||
if not args.files:
|
if not args.files:
|
||||||
if args.list:
|
if args.list:
|
||||||
|
Loading…
Reference in New Issue
Block a user