From 99fd7ebe63339c7b67066ea0e39fc769d195c619 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 18 Jul 2021 22:06:50 -0400 Subject: [PATCH] Fix excessive CPU due to looping --- daemon-common/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon-common/log.py b/daemon-common/log.py index 75e39347..02ea1a6d 100644 --- a/daemon-common/log.py +++ b/daemon-common/log.py @@ -192,7 +192,7 @@ class ZookeeperLogger(Thread): while self.running: # Get a new message try: - message = self.queue.get(block=False) + message = self.queue.get() if not message: continue except Exception: