add warning on unexpected redundant state set

This commit is contained in:
Thales Maciel 2026-02-25 11:33:07 -03:00
parent 7af8750258
commit 2cbc1a98b9
No known key found for this signature in database
GPG key ID: 33112E6833C34679

View file

@ -83,6 +83,8 @@ class Daemon:
self.state = state
if prev != state:
logging.debug("state: %s -> %s", prev, state)
else:
logging.warning("redundant state set: %s, kindly inform the dev", state)
def get_state(self):
with self.lock: