[Libreoffice-commits] online.git: common/Session.cpp kit/ChildSession.cpp wsd/ClientSession.cpp

Ashod Nakashian ashod.nakashian at collabora.co.uk
Sun Jan 1 03:55:37 UTC 2017


 common/Session.cpp    |    2 --
 kit/ChildSession.cpp  |    1 +
 wsd/ClientSession.cpp |    2 +-
 3 files changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 3a5be2926bafb0f433fd9059c2b75a1bd623ffc0
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Wed Dec 21 18:21:48 2016 -0500

    wsd: log WS incoming messages only once
    
    Change-Id: Iee31bc649ae2d194b6418367f0e9ab8561099b17
    Reviewed-on: https://gerrit.libreoffice.org/32551
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/common/Session.cpp b/common/Session.cpp
index afebb3b..c409a57 100644
--- a/common/Session.cpp
+++ b/common/Session.cpp
@@ -228,8 +228,6 @@ bool Session::handleInput(const char *buffer, int length)
             length = replace->size();
         }
 
-        LOG_TRC(getName() << ": Recv: " << getAbbreviatedMessage(buffer, length));
-
         return _handleInput(buffer, length);
     }
     catch (const Exception& exc)
diff --git a/kit/ChildSession.cpp b/kit/ChildSession.cpp
index cd1f404..90d6367 100644
--- a/kit/ChildSession.cpp
+++ b/kit/ChildSession.cpp
@@ -74,6 +74,7 @@ void ChildSession::disconnect()
 
 bool ChildSession::_handleInput(const char *buffer, int length)
 {
+    LOG_TRC(getName() + ": handling [" << getAbbreviatedMessage(buffer, length) << "].");
     const std::string firstLine = getFirstLine(buffer, length);
     StringTokenizer tokens(firstLine, " ", StringTokenizer::TOK_IGNORE_EMPTY | StringTokenizer::TOK_TRIM);
 
diff --git a/wsd/ClientSession.cpp b/wsd/ClientSession.cpp
index faa0ba4..f26fff3 100644
--- a/wsd/ClientSession.cpp
+++ b/wsd/ClientSession.cpp
@@ -77,9 +77,9 @@ void ClientSession::bridgePrisonerSession()
 
 bool ClientSession::_handleInput(const char *buffer, int length)
 {
+    LOG_TRC(getName() + ": handling [" << getAbbreviatedMessage(buffer, length) << "].");
     const std::string firstLine = getFirstLine(buffer, length);
     StringTokenizer tokens(firstLine, " ", StringTokenizer::TOK_IGNORE_EMPTY | StringTokenizer::TOK_TRIM);
-    Log::trace(getName() + ": handling [" + firstLine + "].");
 
     auto docBroker = getDocumentBroker();
     if (!docBroker)


More information about the Libreoffice-commits mailing list