Skip to content
Snippets Groups Projects
Commit 3cefa993 authored by Mattia Mancini's avatar Mattia Mancini
Browse files

Add debug info

parent 3de521ed
No related branches found
No related tags found
1 merge request!10Implement pruning mechanism for the utils script
Pipeline #39311 passed with warnings
...@@ -30,7 +30,7 @@ def extract_surls_from_obj( ...@@ -30,7 +30,7 @@ def extract_surls_from_obj(
for value in obj: for value in obj:
extract_surls_from_obj(value, partial=partial) extract_surls_from_obj(value, partial=partial)
except KeyError as exception: except KeyError as exception:
logging.exception(exception) logger.exception(exception)
return partial return partial
...@@ -51,10 +51,13 @@ def remove_surl_locations(surls: List[str], dry_run=False) -> None: ...@@ -51,10 +51,13 @@ def remove_surl_locations(surls: List[str], dry_run=False) -> None:
for surl in surls: for surl in surls:
if not dry_run: if not dry_run:
logging.debug("removing file: %s", context.stat(surl))
logger.debug("removing surl %s", surl)
logger.debug("file stats are:", context.stat(surl))
context.release(surl) context.release(surl)
else: else:
logging.info("removing file: %s", context.stat(surl)) logger.info("[dry-run] removing surl %s", surl)
logger.info("file stats are: %s", context.stat(surl))
def prune(args): def prune(args):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment