loolwsd/IoUtil.cpp | 2 ++ loolwsd/LOOLKit.cpp | 1 + loolwsd/LOOLSession.cpp | 1 + 3 files changed, 4 insertions(+)
New commits: commit 74ad4fb529e6ecb57a1a87d1db02a71e38cc44ba Author: Ashod Nakashian <ashod.nakash...@collabora.co.uk> Date: Mon Oct 31 21:38:52 2016 -0400 loolwsd: log large message transmission Change-Id: I68d7cb7cf69c45c8050d8202f51f6160bb050587 Reviewed-on: https://gerrit.libreoffice.org/30493 Reviewed-by: Ashod Nakashian <ashnak...@gmail.com> Tested-by: Ashod Nakashian <ashnak...@gmail.com> diff --git a/loolwsd/IoUtil.cpp b/loolwsd/IoUtil.cpp index a6019b8..90483ac 100644 --- a/loolwsd/IoUtil.cpp +++ b/loolwsd/IoUtil.cpp @@ -148,6 +148,8 @@ void SocketProcessor(const std::shared_ptr<WebSocket>& ws, if (tokens.count() == 2 && tokens[0] == "nextmessage:" && LOOLProtocol::getTokenInteger(tokens[1], "size", size) && size > 0) { + LOG_TRC("Getting large message of " << tokens[1] << " bytes."); + // Check if it is a "nextmessage:" and in that case read the large // follow-up message separately, and handle that only. payload.resize(size); diff --git a/loolwsd/LOOLKit.cpp b/loolwsd/LOOLKit.cpp index e08c29b..66319c3 100644 --- a/loolwsd/LOOLKit.cpp +++ b/loolwsd/LOOLKit.cpp @@ -637,6 +637,7 @@ public: if (length > SMALL_MESSAGE_SIZE) { const std::string nextmessage = "nextmessage: size=" + std::to_string(length); + LOG_TRC("Sending large message [" << nextmessage << "]."); _ws->sendFrame(nextmessage.data(), nextmessage.size()); } diff --git a/loolwsd/LOOLSession.cpp b/loolwsd/LOOLSession.cpp index 0311c72..6c3b5a4 100644 --- a/loolwsd/LOOLSession.cpp +++ b/loolwsd/LOOLSession.cpp @@ -87,6 +87,7 @@ bool LOOLSession::sendTextFrame(const char* buffer, const int length) if (length > SMALL_MESSAGE_SIZE) { const std::string nextmessage = "nextmessage: size=" + std::to_string(length); + LOG_TRC("Sending large message [" << nextmessage << "]."); _ws->sendFrame(nextmessage.data(), nextmessage.size()); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits