diff options
author | Peter Amstutz | 2020-07-03 21:40:17 +0000 |
---|---|---|
committer | Peter Amstutz | 2020-07-03 21:40:17 +0000 |
commit | dd0ff95c6973953542cc3a275be2b057b30ff577 (patch) | |
tree | fd2b8b49d25c79ce36f61ee8e2e68dd912d61914 | |
parent | 33ed39e9e82d4f8e4af27f2f0d0676977d367137 (diff) | |
download | bh20-seq-resource-dd0ff95c6973953542cc3a275be2b057b30ff577.tar.gz bh20-seq-resource-dd0ff95c6973953542cc3a275be2b057b30ff577.tar.lz bh20-seq-resource-dd0ff95c6973953542cc3a275be2b057b30ff577.zip |
A little more logging
-rw-r--r-- | bh20seqanalyzer/main.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 |