Update receive_logs.py

This commit is contained in:
Gerardo Tatzati 2023-07-27 09:40:10 -04:00
parent 27934f93eb
commit e179521452

View File

@ -14,7 +14,7 @@ def main():
channel.queue_bind(exchange='logs', queue=queue_name)
def callback(ch, method, properties, body):
print(" [x] %r" % body.decode())
print(f" [x] {body.decode()}")
print(' [*] Waiting for logs. To exit press CTRL+C')
channel.basic_consume(