From dd0ff95c6973953542cc3a275be2b057b30ff577 Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Fri, 3 Jul 2020 21:40:17 +0000 Subject: A little more logging --- bh20seqanalyzer/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bh20seqanalyzer/main.py b/bh20seqanalyzer/main.py index 9daab5a..7839d20 100644 --- a/bh20seqanalyzer/main.py +++ b/bh20seqanalyzer/main.py @@ -23,6 +23,8 @@ def validate_upload(api, collection, validated_project, # validate the collection here. Check metadata, etc. valid = True + logging.info("Validating upload '%s' (%s)" % (collection["name"], collection["uuid"])) + if "metadata.yaml" not in col: logging.warn("Upload '%s' missing metadata.yaml", collection["name"]) valid = False @@ -75,7 +77,7 @@ def validate_upload(api, collection, validated_project, "name": "%s (%s)" % (collection["name"], time.asctime(time.gmtime()))}).execute() else: # It is invalid, delete it. - logging.warn("Suggest deleting '%s'" % collection["name"]) + logging.warn("Suggest deleting '%s' (%s)" % (collection["name"], collection["uuid"])) #api.collections().delete(uuid=collection["uuid"]).execute() return valid -- cgit v1.2.3