Skip to content

Commit

Permalink
Merge pull request smarthomeNG#915 from onkelandy/stateengine
Browse files Browse the repository at this point in the history
stateengine plugin: fix logging of header
  • Loading branch information
onkelandy authored Feb 29, 2024
2 parents f156c88 + 38a4c82 commit db53b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stateengine/StateEngineItem.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,14 @@ 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()

if _startup_log_level > 0:
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:
Expand Down

0 comments on commit db53b40

Please sign in to comment.