add debug logging

This commit is contained in:
Alexander Tokmakov 2022-03-22 15:34:20 +01:00
parent 0ab258be01
commit bc5a689899
2 changed files with 2 additions and 1 deletions

View File

@ -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)