From 58498260c6128151c805265232ad3467770493b7 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 9 Jun 2018 20:48:42 +0200 Subject: Add subscriber connect debug --- src/BootstrapConnection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/BootstrapConnection.cpp b/src/BootstrapConnection.cpp index 4691462..9a19943 100644 --- a/src/BootstrapConnection.cpp +++ b/src/BootstrapConnection.cpp @@ -68,9 +68,10 @@ namespace sibs subscribedPeersMutex.lock(); subscribedPeers[pubsubKey].push_back(newPeer); subscribedPeersMutex.unlock(); + Log::debug("BootstrapConnection: Connected to peer (ip: %s, port: %d) given by bootstrap node", newPeer->address.getAddress().c_str(), newPeer->address.getPort()); } else - Log::error("UDT: Failed to connect to peer given by bootstrap node, error: %s", resultStr.c_str()); + Log::error("BootstrapConnection: Failed to connect to peer given by bootstrap node, error: %s", resultStr.c_str()); }, std::bind(&BootstrapConnection::receiveDataFromPeer, this, listenerCallbackFunc, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3)); } else -- cgit v1.2.3