Skip to content

Commit

Permalink
Disable needless kazoo logging in integration tests (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Burmak committed Aug 24, 2023
1 parent a9a7af4 commit e6f97d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/integration/modules/zookeeper.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
ZooKeeper client calls
"""

import logging
from typing import List, Optional

from kazoo.client import KazooClient
Expand Down Expand Up @@ -59,6 +59,9 @@ def get_children_list(context: ContextT, node: str, zk_path: str) -> Optional[Li


def _get_zookeeper_client(context: ContextT, node: str) -> KazooClient:
# disable logging
logging.getLogger("kazoo").setLevel(logging.CRITICAL)

zk_container = get_container(context, node)
host, port = get_exposed_port(zk_container, 2181)
return KazooClient(f"{host}:{port}")

0 comments on commit e6f97d4

Please sign in to comment.