add warning on unexpected redundant state set
This commit is contained in:
parent
7af8750258
commit
2cbc1a98b9
1 changed files with 2 additions and 0 deletions
|
|
@ -83,6 +83,8 @@ class Daemon:
|
||||||
self.state = state
|
self.state = state
|
||||||
if prev != state:
|
if prev != state:
|
||||||
logging.debug("state: %s -> %s", 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):
|
def get_state(self):
|
||||||
with self.lock:
|
with self.lock:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue