Skip to content

Commit

Permalink
stateengine plugin: update logging
Browse files Browse the repository at this point in the history
  • Loading branch information
onkelandy committed May 14, 2024
1 parent 4f1d4bc commit 3cb11cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stateengine/StateEngineCondition.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,15 +850,15 @@ def check_eval(eval_or_status_eval):

if self.__status is not None:
# noinspection PyUnusedLocal
self._log_debug("Trying to get {} of status item {}", eval_type, self.__status)
self._log_debug("Trying to get {} of status item {}", eval_type, self.__status.property.path)
return self.__status.property.last_change_age if eval_type == 'age' else\
self.__status.property.last_change_by if eval_type == 'changedby' else\
self.__status.property.last_update_by if eval_type == 'updatedby' else\
self.__status.property.last_trigger_by if eval_type == 'triggeredby' else\
self.__status.property.value
elif self.__item is not None:
# noinspection PyUnusedLocal
self._log_debug("Trying to get {} of item {}", eval_type, self.__item)
self._log_debug("Trying to get {} of item {}", eval_type, self.__item.property.path)
return self.__item.property.last_change_age if eval_type == 'age' else\
self.__item.property.last_change_by if eval_type == 'changedby' else\
self.__item.property.last_update_by if eval_type == 'updatedby' else\
Expand Down

0 comments on commit 3cb11cc

Please sign in to comment.