From 38a4c82e2ffbd83dbd7cefcb2e548358a0792d47 Mon Sep 17 00:00:00 2001 From: Onkel Andy Date: Thu, 29 Feb 2024 14:38:59 +0100 Subject: [PATCH] stateengine plugin: fix logging of header when directory is not created yet --- stateengine/StateEngineItem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stateengine/StateEngineItem.py b/stateengine/StateEngineItem.py index 49476cb11..bc7c33166 100755 --- a/stateengine/StateEngineItem.py +++ b/stateengine/StateEngineItem.py @@ -209,7 +209,6 @@ def __init__(self, smarthome, item, se_plugin): if isinstance(_returnvalue, list) and len(_returnvalue) == 1: _returnvalue = _returnvalue[0] self.__logger.log_level_as_num = 2 - self.__logger.header("") _startup_log_level = SeLogger.startup_log_level.get() @@ -217,6 +216,7 @@ def __init__(self, smarthome, item, se_plugin): base = self.__sh.get_basedir() SeLogger.manage_logdirectory(base, SeLogger.log_directory, True) self.__logger.log_level_as_num = _startup_log_level + self.__logger.header("") self.__logger.info("Set log level to startup log level {}", _startup_log_level) if isinstance(_returnvalue, list) and len(_returnvalue) > 1: