From 0b8f250676a3eec8f9ed8e46f56962ba1324c7f9 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 27 Oct 2018 00:24:13 +0200 Subject: Add debug when send fails --- src/BootstrapConnection.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/BootstrapConnection.cpp') diff --git a/src/BootstrapConnection.cpp b/src/BootstrapConnection.cpp index d0731b9..4ace97c 100644 --- a/src/BootstrapConnection.cpp +++ b/src/BootstrapConnection.cpp @@ -240,7 +240,10 @@ namespace sibs bool BootstrapConnection::put(const PubsubKey &pubsubKey, const void *data, const usize size) { if(size > 819200) // 800kb + { + Log::error("No data was sent because you are trying to send more than 800kb"); return false; + } { std::lock_guard lock(subscribeDataMutex); -- cgit v1.2.3