initialise logger in these

This commit is contained in:
PC-Admin 2023-08-17 23:57:50 +08:00
parent 4899b7f212
commit fbf4270840

View File

@ -78,6 +78,7 @@ class RedlightServerModule:
RedlightServerResource(config, self) RedlightServerResource(config, self)
) )
self.logger = configure_logger()
self.logger.info("RedlightServerModule initialized.") self.logger.info("RedlightServerModule initialized.")
class RedlightServerResource: class RedlightServerResource:
@ -89,6 +90,7 @@ class RedlightServerResource:
self._data_manager = SourceDataManager(module, config) self._data_manager = SourceDataManager(module, config)
self._source_dict = self._data_manager.get_data() self._source_dict = self._data_manager.get_data()
self._api_tokens = ["stong-access-token"] self._api_tokens = ["stong-access-token"]
self.logger = configure_logger()
# Logging for debug purposes # Logging for debug purposes
self.logger.debug(f"Filtered room_id_hashes: {list(self._source_dict.keys())}") self.logger.debug(f"Filtered room_id_hashes: {list(self._source_dict.keys())}")