diff options
Diffstat (limited to 'src/BootstrapConnection.cpp')
-rw-r--r-- | src/BootstrapConnection.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/BootstrapConnection.cpp b/src/BootstrapConnection.cpp index fc2e4ab..58a07d2 100644 --- a/src/BootstrapConnection.cpp +++ b/src/BootstrapConnection.cpp @@ -13,6 +13,7 @@ namespace sibs alive(true), putThreadCount(0) { + Log::debug("Created bootstrap connection, p2p? %s", options.useP2p ? "yes" : "no"); connections.onRemoveDisconnectedPeer([this](std::shared_ptr<DirectConnectionPeer> peer) { std::lock_guard<std::recursive_mutex> lock(subscribeDataMutex); @@ -97,7 +98,7 @@ namespace sibs return; } - Log::debug("BootstrapConnection::receiveDataFromServer: Received subscriber(s) from bootstrap node"); + //Log::debug("BootstrapConnection::receiveDataFromServer: Received subscriber(s) from bootstrap node"); sibs::SafeDeserializer deserializer((const u8*)data, size); PubsubKey pubsubKey; deserializer.extract(pubsubKey.data.data(), PUBSUB_KEY_LENGTH); @@ -121,7 +122,7 @@ namespace sibs in_addr_t ipv4Address = deserializer.extract<u32>(); u16 port = deserializer.extract<u16>(); Ipv4 newPeerAddress(addressFamily, ipv4Address, port); - Log::debug("BootstrapConnection::receiveDataFromServer: received subscriber (ip: %s, port: %d) from bootstrap node", newPeerAddress.getAddress().c_str(), newPeerAddress.getPort()); + //Log::debug("BootstrapConnection::receiveDataFromServer: received subscriber (ip: %s, port: %d) from bootstrap node", newPeerAddress.getAddress().c_str(), newPeerAddress.getPort()); connections.connect(newPeerAddress, [this, pubsubKey](std::shared_ptr<DirectConnectionPeer> peer, PubSubResult result, const std::string &resultStr) { std::lock_guard<std::recursive_mutex> lock(subscribeDataMutex); |