Fix excessive CPU due to looping

This commit is contained in:
Joshua Boniface 2021-07-18 22:06:50 -04:00
parent cffc96d156
commit 99fd7ebe63
1 changed files with 1 additions and 1 deletions

View File

@ -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: