remove another expensive logging lookup in the parent callback process

This commit is contained in:
Ryan Petrello 2020-01-24 13:42:13 -05:00
parent 7be924d155
commit 8f33f1a6c2
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

View File

@ -72,9 +72,6 @@ class PoolWorker(object):
if not body.get('uuid'):
body['uuid'] = str(uuid4())
uuid = body['uuid']
logger.debug('delivered {} to worker[{}] qsize {}'.format(
uuid, self.pid, self.qsize
))
self.managed_tasks[uuid] = body
self.queue.put(body, block=True, timeout=5)
self.messages_sent += 1