Skip to content

Commit 00e4ef7

Browse files
committed
queue: Suppress pika INFO logging
Set the logging level for pika to WARNING to suppress excessive INFO logging. Signed-off-by: Phoevos Kalemkeris <[email protected]>
1 parent 7ba19d2 commit 00e4ef7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cogstack_model_gateway/common/queue.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ def __init__(
2525
connection_url: str = None,
2626
max_concurrent_tasks: int = 1,
2727
):
28+
logging.getLogger("pika").setLevel(logging.WARNING)
29+
2830
if user and password and host and port:
2931
self.connection_url = f"amqp://{user}:{password}@{host}:{port}/"
3032
elif connection_url:

0 commit comments

Comments
 (0)