diff --git a/oml/nodes.py b/oml/nodes.py index c5cfbfe..8c28530 100644 --- a/oml/nodes.py +++ b/oml/nodes.py @@ -523,7 +523,8 @@ class Nodes(Thread): while not state.shutdown: args = self._q.get() if args: - logger.debug('processing nodes queue: next: "%s", %s entries in queue', args[0], self._q.qsize()) + if DEBUG_NODES: + logger.debug('processing nodes queue: next: "%s", %s entries in queue', args[0], self._q.qsize()) if args[0] == 'add': self._add(*args[1:]) elif args[0] == 'pull': @@ -532,7 +533,7 @@ class Nodes(Thread): self._call(*args) def queue(self, *args): - if args: + if args and DEBUG_NODES: logger.debug('queue "%s", %s entries in queue', args, self._q.qsize()) self._q.put(list(args))