From bc5a689899032c2643f7621c2506a684d0f50145 Mon Sep 17 00:00:00 2001 From: Alexander Tokmakov Date: Tue, 22 Mar 2022 15:34:20 +0100 Subject: [PATCH] add debug logging --- src/Common/ZooKeeper/ZooKeeper.cpp | 1 + tests/integration/helpers/cluster.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Common/ZooKeeper/ZooKeeper.cpp b/src/Common/ZooKeeper/ZooKeeper.cpp index 5aeeaf9b4ef..118789c0ffc 100644 --- a/src/Common/ZooKeeper/ZooKeeper.cpp +++ b/src/Common/ZooKeeper/ZooKeeper.cpp @@ -81,6 +81,7 @@ void ZooKeeper::init(const std::string & implementation_, const Strings & hosts_ if (secure) host_string.erase(0, strlen("secure://")); + LOG_TEST(log, "Adding ZooKeeper host {} ({})", host_string, Poco::Net::SocketAddress{host_string}.toString()); nodes.emplace_back(Coordination::ZooKeeper::Node{Poco::Net::SocketAddress{host_string}, secure}); } catch (const Poco::Net::HostNotFoundException & e) diff --git a/tests/integration/helpers/cluster.py b/tests/integration/helpers/cluster.py index 67d096a1f0c..400a38d8981 100644 --- a/tests/integration/helpers/cluster.py +++ b/tests/integration/helpers/cluster.py @@ -31,7 +31,7 @@ try: from confluent_kafka.avro.cached_schema_registry_client import \ CachedSchemaRegistryClient except Exception as e: - logging.warning(f"Cannot import some modules, some tests may not work:{e}") + logging.warning(f"Cannot import some modules, some tests may not work: {e}") from dict2xml import dict2xml from kazoo.client import KazooClient