From 14aaee9347006bd6b7d707a501d6d1806e7083fd Mon Sep 17 00:00:00 2001 From: Furkan Date: Thu, 14 Nov 2024 23:16:47 +0300 Subject: [PATCH] fix: fix supervisor bug --- src/supervisor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/supervisor.py b/src/supervisor.py index dbc97d4..23b9d0e 100644 --- a/src/supervisor.py +++ b/src/supervisor.py @@ -39,9 +39,11 @@ class Supervisor: _logger: logging.Logger def init(self): - self._logger = logging.getLogger(f"Supervisor({self.config.supervisor_id})") + self._logger = logging.getLogger() self.config = self._load_supervisor_config() + # Change logging name based on supervisor id + self._logger.name = f"Supervisor({self.config.supervisor_id})" self.restart_schedules = [] self.daq_job_threads = self.start_daq_job_threads()