diff --git a/atdb/prune.py b/atdb/prune.py index 21b22e140936d7b838e3240b8efc6bce8176c081..cb9b5946cc9f41778068252320ba2fd0f5142281 100644 --- a/atdb/prune.py +++ b/atdb/prune.py @@ -30,7 +30,7 @@ def extract_surls_from_obj( for value in obj: extract_surls_from_obj(value, partial=partial) except KeyError as exception: - logging.exception(exception) + logger.exception(exception) return partial @@ -51,10 +51,13 @@ def remove_surl_locations(surls: List[str], dry_run=False) -> None: for surl in surls: 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) 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):