From 99776bd9a83e653d09fb57a23eec5f043dec2941 Mon Sep 17 00:00:00 2001
From: Jorrit Schaap <schaap@astron.nl>
Date: Tue, 19 May 2020 21:46:41 +0200
Subject: [PATCH] TMSS-60: fixed logging

---
 SAS/TMSS/src/tmss/tmssapp/subtasks.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/SAS/TMSS/src/tmss/tmssapp/subtasks.py b/SAS/TMSS/src/tmss/tmssapp/subtasks.py
index 6045df5b2fe..f6fd537561f 100644
--- a/SAS/TMSS/src/tmss/tmssapp/subtasks.py
+++ b/SAS/TMSS/src/tmss/tmssapp/subtasks.py
@@ -1,3 +1,6 @@
+import logging
+logger = logging.getLogger(__name__)
+
 from datetime import datetime, timedelta
 from lofar.common.datetimeutils import parseDatetime
 
@@ -188,7 +191,7 @@ def connect_observation_subtask_to_preprocessing_subtask(observation_subtask: Su
             pipeline_subtask.pk, pipeline_subtask.specifications_template.type,
             SubtaskType.Choices.OBSERVATION.value, SubtaskType.Choices.PIPELINE.value))
 
-    logging.info("Connecting subtask %s type=%s to subtask id=%d type=%s" % (
+    logger.info("Connecting subtask %s type=%s to subtask id=%d type=%s" % (
         observation_subtask.pk, observation_subtask.specifications_template.type,
         pipeline_subtask.pk, pipeline_subtask.specifications_template.type))
 
-- 
GitLab