diff options
| author | jvoisin | 2019-05-13 22:12:00 +0200 |
|---|---|---|
| committer | jvoisin | 2019-05-13 22:12:00 +0200 |
| commit | aa0ff643c4f6a83d5eb38f10610f11c8ca81d414 (patch) | |
| tree | a06118d1e19b91b33e05a1fb4e688b4865b0119b | |
| parent | dd9ead4ebeb04a82e8d1e7c72be319520aacd4d1 (diff) | |
Improve a bit the debug mode
| -rwxr-xr-x | mat2 | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -117,6 +117,7 @@ def clean_meta(filename: str, is_lightweight: bool, policy: UnknownMemberPolicy) | |||
| 117 | p.lightweight_cleaning = is_lightweight | 117 | p.lightweight_cleaning = is_lightweight |
| 118 | 118 | ||
| 119 | try: | 119 | try: |
| 120 | logging.debug('Cleaning %s…' % filename) | ||
| 120 | return p.remove_all() | 121 | return p.remove_all() |
| 121 | except RuntimeError as e: | 122 | except RuntimeError as e: |
| 122 | print("[-] %s can't be cleaned: %s" % (filename, e)) | 123 | print("[-] %s can't be cleaned: %s" % (filename, e)) |
| @@ -157,7 +158,7 @@ def main() -> int: | |||
| 157 | args = arg_parser.parse_args() | 158 | args = arg_parser.parse_args() |
| 158 | 159 | ||
| 159 | if args.verbose: | 160 | if args.verbose: |
| 160 | logging.basicConfig(level=logging.INFO) | 161 | logging.getLogger().setLevel(logging.DEBUG) |
| 161 | 162 | ||
| 162 | if not args.files: | 163 | if not args.files: |
| 163 | if args.list: | 164 | if args.list: |
