diff options
Diffstat (limited to 'libcmix-network/client.cpp')
| -rw-r--r-- | libcmix-network/client.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libcmix-network/client.cpp b/libcmix-network/client.cpp index 544dd87..ce9fd4d 100644 --- a/libcmix-network/client.cpp +++ b/libcmix-network/client.cpp @@ -1,5 +1,7 @@ #include "client.hpp" +#include "logging.hpp" + #include <boost/asio/placeholders.hpp> #include <boost/bind.hpp> @@ -19,10 +21,11 @@ void Client::handle_receive(MessageHandler message_handler, const error_code &ec buffer.commit(read_bytes); std::istream is(&buffer); + BOOST_LOG_TRIVIAL(trace) << "handling receive"; + if(!ec) { std::vector<uint8_t> data(std::istream_iterator<uint8_t>(is), {}); message_handler(data); - receive(message_handler); } else { if(done) { done(); |
