From 88407488cd70c4830d3d5f0952deb1ea02a82d6b Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Fri, 20 Nov 2020 19:12:24 +0100 Subject: [PATCH] added skip logs to extract review --- pype/plugins/global/publish/extract_review.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pype/plugins/global/publish/extract_review.py b/pype/plugins/global/publish/extract_review.py index dd28e6fec3..857119176f 100644 --- a/pype/plugins/global/publish/extract_review.py +++ b/pype/plugins/global/publish/extract_review.py @@ -122,11 +122,24 @@ class ExtractReview(pyblish.api.InstancePlugin): # Loop through representations for repre in tuple(instance.data["representations"]): + repre_name = str(repre.get("name")) tags = repre.get("tags") or [] - if "review" not in tags or "thumbnail" in tags: + if "review" not in tags: + self.log.debug(( + "Repre: {} - Didn't found \"review\" in tags. Skipping" + ).format(repre_name)) + continue + + if "thumbnail" in tags: + self.log.debug(( + "Repre: {} - Found \"thumbnail\" in tags. Skipping" + ).format(repre_name)) continue if "passing" in tags: + self.log.debug(( + "Repre: {} - Found \"passing\" in tags. Skipping" + ).format(repre_name)) continue input_ext = repre["ext"]