From d6a45f6bd3bb080f442c8f256cb38d298f520343 Mon Sep 17 00:00:00 2001 From: Marc Michalsky Date: Fri, 12 Nov 2021 09:35:15 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8A=20write=20info=20log=20messages=20?= =?UTF-8?q?if=20issue=20gets=20skipped?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index 0ec93eb..732e1d5 100644 --- a/main.py +++ b/main.py @@ -83,10 +83,12 @@ def treat_issues(): # Skip issue if start date is not yet reached if hasattr(issue, 'start_date') and date.today() < issue.start_date: + logging.info(f'Ticket ID: {issue.id}, skipped because start date not yet reached') continue # Skip issue if due date is not yet reached if hasattr(issue, 'due_date') and date.today() < issue.due_date: + logging.info(f'Ticket ID: {issue.id}, skipped because due date not yet reached') continue # Skip issue if a no_bot_tag is found in the issue description or any of its journals @@ -96,6 +98,7 @@ def treat_issues(): return True return False if no_bot_tag in issue.description or find_no_bot_tag_in_journals(issue.journals): + logging.info(f'Ticket ID: {issue.id}, skipped because no_bot_tag "{no_bot_tag}" was found') continue # Render message template