less debug output

This commit is contained in:
j 2019-02-20 18:28:25 +05:30
parent 41d90e1736
commit fa9482de48

View file

@ -70,6 +70,8 @@ class Node(Thread):
else:
if not self._q.qsize():
time.sleep(5)
else:
time.sleep(0.1)
self.queue(action[0], *action[1])
else:
logger.debug('unknown action %s', action)
@ -83,6 +85,7 @@ class Node(Thread):
self._q.put('ping')
def queue(self, action, *args):
if DEBUG_NODES:
logger.debug('queue node action %s->%s%s', self.user_id, action, args)
self._q.put([action, args])