aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <0xdec05eba@gmail.com>2018-06-09 16:10:21 +0200
committerdec05eba <0xdec05eba@gmail.com>2018-06-09 16:10:24 +0200
commitf5cfb3d6ef967a3c5547d7eb417a9a028c520d34 (patch)
treedd0786089c179441b90e95deaef39cccfb554544 /src
parentfe9bfe8766982d88274ef3969124ebbfc189f98b (diff)
Add debug
Diffstat (limited to 'src')
-rw-r--r--src/BootstrapConnection.cpp6
1 files changed, 5 insertions, 1 deletions
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<std::vector<u8>>(pubsubKey.data.data(), pubsubKey.data.data()));
+ connections.send(serverPeer, std::make_shared<std::vector<u8>>(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<std::vector<u8>> data)