javierarilos / bashtasks

Execute bash commands via RabbitMQ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

handle_message does not log the appropiate queue

zoraida opened this issue · comments

Always assumes that the queue will be TASK_REQUESTS_POOL
def handle_message(ch, method, properties, body):
msg = json.loads(body.decode('utf-8'))
logger.debug(">>>> msg received: %s from queue %s : correlation_id %d command: %s",
curr_th_name, TASK_REQUESTS_POOL, msg['correlation_id'], msg['command'][:50])

well spotted.
you are right, pls send a PR.
thanks.

closed by PR related to:
#3