diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-06-09 16:10:21 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-08-18 22:56:48 +0200 |
commit | b227a922a4f6e65a1b517b46f1eee66ec384e7e0 (patch) | |
tree | ab2c79ec2c78ca00a18f3bb96c47c79e642dc1ec | |
parent | 28eb36734e8315b4c11f6c51629071c3df4ade10 (diff) |
Add debug
-rw-r--r-- | src/BootstrapConnection.cpp | 6 |
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) |