[Libreoffice-commits] online.git: loolwsd/LOOLSession.cpp
Ashod Nakashian
ashod.nakashian at collabora.co.uk
Wed Jan 6 06:22:31 PST 2016
loolwsd/LOOLSession.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit a5cca41b353a4f47e74be4381bfc175e7caac801
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date: Tue Jan 5 22:31:57 2016 -0500
loolwsd: logging improvements in LOOLSession.
Change-Id: Ia5029bc55be0bf0f1a3282db103515ae22fd90bd
Reviewed-on: https://gerrit.libreoffice.org/21157
Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
Tested-by: Ashod Nakashian <ashnakash at gmail.com>
diff --git a/loolwsd/LOOLSession.cpp b/loolwsd/LOOLSession.cpp
index 2f642ed..96f844f 100644
--- a/loolwsd/LOOLSession.cpp
+++ b/loolwsd/LOOLSession.cpp
@@ -108,7 +108,7 @@ void LOOLSession::sendTextFrame(const std::string& text)
return;
}
else
- Log::trace(_kindString + ",Send," + getAbbreviatedMessage(text.c_str(), text.size()));
+ Log::trace(getName() + " Send: " + getAbbreviatedMessage(text.c_str(), text.size()));
std::unique_lock<std::mutex> lock(_mutex);
@@ -123,13 +123,13 @@ void LOOLSession::sendBinaryFrame(const char *buffer, int length)
return;
}
else
- Log::trace(_kindString + ",Send," + std::to_string(length) + " bytes");
+ Log::trace(getName() + " Send: " + std::to_string(length) + " bytes");
std::unique_lock<std::mutex> lock(_mutex);
if (length > 1000)
{
- std::string nextmessage = "nextmessage: size=" + std::to_string(length);
+ const std::string nextmessage = "nextmessage: size=" + std::to_string(length);
_ws->sendFrame(nextmessage.data(), nextmessage.size());
}
@@ -174,7 +174,7 @@ bool LOOLSession::handleInput(const char *buffer, int length)
{
assert(buffer != nullptr);
- Log::trace(_kindString + ",Recv," + getAbbreviatedMessage(buffer, length));
+ Log::trace(getName() + " Recv: " + getAbbreviatedMessage(buffer, length));
try
{
More information about the Libreoffice-commits
mailing list