[Libreoffice-commits] online.git: loolwsd/LOOLSession.cpp

Ashod Nakashian ashod.nakashian at collabora.co.uk
Sat Mar 26 17:08:55 UTC 2016


 loolwsd/LOOLSession.cpp |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 74580df0d688008130edfe92cb5526413ede7c9e
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Sat Mar 26 09:17:08 2016 -0400

    loolwsd: warn if still communicating while terminating
    
    Change-Id: Id42bb29e7c5f17772c4251d686e82d4380d2a073
    Reviewed-on: https://gerrit.libreoffice.org/23539
    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 b51120a..e69cbf0 100644
--- a/loolwsd/LOOLSession.cpp
+++ b/loolwsd/LOOLSession.cpp
@@ -188,7 +188,12 @@ bool LOOLSession::handleInput(const char *buffer, int length)
 
     try
     {
-        Log::trace(getName() + " Recv: " + getAbbreviatedMessage(buffer, length));
+        const auto summary = getAbbreviatedMessage(buffer, length);
+        Log::trace(getName() + " Recv: " + summary);
+        if (TerminationFlag)
+        {
+            Log::warn("Input while terminating: [" + summary + "].");
+        }
 
         return _handleInput(buffer, length);
     }


More information about the Libreoffice-commits mailing list