aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-06-09 20:48:42 +0200
committerdec05eba <dec05eba@protonmail.com>2020-08-18 22:56:48 +0200
commit58498260c6128151c805265232ad3467770493b7 (patch)
treeb1cb26e9861736a903667daedd831bcdde028f74 /src
parent4f62fd64c5b56546db7a0310708a7eab389af610 (diff)
Add subscriber connect debug
Diffstat (limited to 'src')
-rw-r--r--src/BootstrapConnection.cpp3
1 files changed, 2 insertions, 1 deletions
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