From dbd82930d42a3ea4d25394eb867c7cfa4e6e0967 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Wed, 14 Jun 2023 09:00:19 +0200 Subject: [PATCH] Removed comments #297_cpl_update --- .../configuration/bot_logging_settings.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/kdb-bot/src/bot_core/configuration/bot_logging_settings.py b/kdb-bot/src/bot_core/configuration/bot_logging_settings.py index a91c5638..1c0fb22a 100644 --- a/kdb-bot/src/bot_core/configuration/bot_logging_settings.py +++ b/kdb-bot/src/bot_core/configuration/bot_logging_settings.py @@ -20,24 +20,7 @@ class BotLoggingSettings(ConfigurationModelABC): def _files_from_dict(self, settings: dict): files = List(FileLoggingSettings) for s in settings: - # st = FileLoggingSettings(s) settings[s]["Key"] = s - # st.from_dict(settings[s]) st = JSONProcessor.process(FileLoggingSettings, settings[s]) files.append(st) self._files = files - - # def from_dict(self, settings: dict): - # try: - # files = List(FileLoggingSettings) - # for s in settings: - # st = FileLoggingSettings() - # settings[s]["Key"] = s - # st.from_dict(settings[s]) - # files.append(st) - # self._files = files - # except Exception as e: - # Console.set_foreground_color(ForegroundColorEnum.red) - # Console.write_line(f"[ ERROR ] [ {__name__} ]: Reading error in {type(self).__name__} settings") - # Console.write_line(f"[ EXCEPTION ] [ {__name__} ]: {e} -> {traceback.format_exc()}") - # Console.set_foreground_color(ForegroundColorEnum.default)