some fixing issues

This commit is contained in:
2024-12-28 18:57:24 +09:00
parent d9b8971be3
commit 171537a0f2
6 changed files with 10 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ class EcviPMSPlugin(BasePMSPlugin):
# Настройка логгера
self.logger = logging.getLogger(self.__class__.__name__)
handler_console = logging.StreamHandler()
handler_file = logging.FileHandler('ecvi_pms_plugin.log')
handler_file = logging.FileHandler('var/log/ecvi_pms_plugin.log')
formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s')
handler_console.setFormatter(formatter)
handler_file.setFormatter(formatter)