Fix excessive CPU due to looping
This commit is contained in:
parent
cffc96d156
commit
99fd7ebe63
|
@ -192,7 +192,7 @@ class ZookeeperLogger(Thread):
|
||||||
while self.running:
|
while self.running:
|
||||||
# Get a new message
|
# Get a new message
|
||||||
try:
|
try:
|
||||||
message = self.queue.get(block=False)
|
message = self.queue.get()
|
||||||
if not message:
|
if not message:
|
||||||
continue
|
continue
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
Loading…
Reference in New Issue