From fbf42708406e9407ea243815ecf9b3de36757a6d Mon Sep 17 00:00:00 2001 From: PC-Admin Date: Thu, 17 Aug 2023 23:57:50 +0800 Subject: [PATCH] initialise logger in these --- redlight_server_module.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/redlight_server_module.py b/redlight_server_module.py index 7fb8da9..2e99ca1 100755 --- a/redlight_server_module.py +++ b/redlight_server_module.py @@ -78,6 +78,7 @@ class RedlightServerModule: RedlightServerResource(config, self) ) + self.logger = configure_logger() self.logger.info("RedlightServerModule initialized.") class RedlightServerResource: @@ -89,6 +90,7 @@ class RedlightServerResource: self._data_manager = SourceDataManager(module, config) self._source_dict = self._data_manager.get_data() self._api_tokens = ["stong-access-token"] + self.logger = configure_logger() # Logging for debug purposes self.logger.debug(f"Filtered room_id_hashes: {list(self._source_dict.keys())}")