From 0919ec6fa9f649d09177b1ea48df0fd0584bcf4e Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 30 Jun 2022 17:52:02 +0200 Subject: [PATCH] add log for new conf pub process --- .../commands/teleforma-publish-notify-conferences.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teleforma/management/commands/teleforma-publish-notify-conferences.py b/teleforma/management/commands/teleforma-publish-notify-conferences.py index b2d37eee..bb89390e 100644 --- a/teleforma/management/commands/teleforma-publish-notify-conferences.py +++ b/teleforma/management/commands/teleforma-publish-notify-conferences.py @@ -49,9 +49,7 @@ class Command(BaseCommand): period = Period.objects.get(name=period_name) now_minus = datetime.datetime.now() - datetime.timedelta(minutes=5) - print(now_minus) now_plus = datetime.datetime.now() + datetime.timedelta(minutes=1) - print(now_plus) conferences = Conference.objects.filter( period=period, @@ -60,6 +58,8 @@ class Command(BaseCommand): date_publish__lte=now_plus, date_publish__gte=now_minus, ) + + logger.logger.info("Starting conference publication process") for conference in conferences: conference.status = 3 -- 2.39.5