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

Ashod Nakashian ashod.nakashian at collabora.co.uk
Sun Oct 16 22:02:25 UTC 2016


 loolwsd/ChildSession.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 2ca592d0ac1c2efa30b59e2d930aa80177386cf9
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Mon Oct 10 13:16:53 2016 -0400

    loolwsd: log the username, Core View-ID, and WSD Session-ID together
    
    This helps debugging and tracing issues as this single log
    entry links the three most important pieces together:
    the user, how Core references the user's view to a
    given document, and how WSD references the same.
    
    Change-Id: I7bf88504b43eed85d40e6f8bc9c3bad713f372da
    Reviewed-on: https://gerrit.libreoffice.org/29935
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/loolwsd/ChildSession.cpp b/loolwsd/ChildSession.cpp
index 9c68c62..cf2115c 100644
--- a/loolwsd/ChildSession.cpp
+++ b/loolwsd/ChildSession.cpp
@@ -311,7 +311,8 @@ bool ChildSession::loadDocument(const char * /*buffer*/, int /*length*/, StringT
         return false;
     }
 
-    Log::info("Created new view with viewid: [" + std::to_string(_viewId) + "] for username: [" + _userName + "].");
+    Log::info() << "Created new view with viewid: [" << _viewId << + "] for username: [" << _userName
+                << "] in session: [" << getId() << "]." << Log::end;
 
     auto lockLokDoc(_loKitDocument->getLock());
 


More information about the Libreoffice-commits mailing list