From b227a922a4f6e65a1b517b46f1eee66ec384e7e0 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 9 Jun 2018 16:10:21 +0200 Subject: Add debug --- src/BootstrapConnection.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/BootstrapConnection.cpp b/src/BootstrapConnection.cpp index 27c64bb..fffb332 100644 --- a/src/BootstrapConnection.cpp +++ b/src/BootstrapConnection.cpp @@ -91,7 +91,11 @@ namespace sibs throw PubsubKeyAlreadyListeningException(""); listenCallbackFuncs[pubsubKey] = callbackFunc; } - connections.send(serverPeer, std::make_shared>(pubsubKey.data.data(), pubsubKey.data.data())); + connections.send(serverPeer, std::make_shared>(pubsubKey.data.data(), pubsubKey.data.data()), + [](PubSubResult result, const std::string &resultStr) + { + Log::debug("BootstrapConnection::listen: PubSubResult: %d, result string: %s", result, resultStr.c_str()); + }); } void BootstrapConnection::put(const PubsubKey &pubsubKey, std::shared_ptr> data) -- cgit v1.2.3