Skip to content

Commit

Permalink
uzsu: fix wrong logger entry
Browse files Browse the repository at this point in the history
  • Loading branch information
onkelandy committed Dec 22, 2024
1 parent 81478c5 commit 61878e5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions uzsu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
Expand Down

0 comments on commit 61878e5

Please sign in to comment.