From f5cfb3d6ef967a3c5547d7eb417a9a028c520d34 Mon Sep 17 00:00:00 2001 From: dec05eba <0xdec05eba@gmail.com> Date: Sat, 9 Jun 2018 16:10:21 +0200 Subject: Add debug --- src/BootstrapConnection.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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