diff --git a/SAS/TMSS/src/tmss/tmssapp/subtasks.py b/SAS/TMSS/src/tmss/tmssapp/subtasks.py
index 6045df5b2fecc3adbe71da9fc55ab111d4af556e..f6fd537561fcf422238af57845126a6f4081da92 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))