From 61878e53d07c07985fd681bb15635e68b1f63833 Mon Sep 17 00:00:00 2001 From: Onkel Andy Date: Sun, 22 Dec 2024 11:38:24 +0100 Subject: [PATCH] uzsu: fix wrong logger entry --- uzsu/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/uzsu/__init__.py b/uzsu/__init__.py index 61182958e..3c49262a5 100755 --- a/uzsu/__init__.py +++ b/uzsu/__init__.py @@ -804,9 +804,10 @@ def _schedule(self, item, caller=None): self._items[item]["list"][i]["active"] = False _next = None self._series[item][i] = "waiting" - update = 'once' - self._update_item(item, 'once') - self.logger.debug(f'uzsu for item {item} final next {_next}, value {_value} and tzinfo {_next.tzinfo}') + update = 'schedule_once' + self._update_item(item, update) + tz_text = '' if _next is None else f' and tzinfo {_next.tzinfo}' + self.logger.debug(f'uzsu for item {item} final next {_next}, value {_value}{tz_text}') elif not self._items[item].get('list') and self._items[item].get('active') is True: self.logger.warning(f'item "{item}" is active but has no entries.')