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

Ashod Nakashian ashod.nakashian at collabora.co.uk
Wed Nov 16 04:42:54 UTC 2016


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

New commits:
commit 0662e35a6de8e2d3efa69ceda2ab25a1396b9098
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Tue Nov 15 22:01:15 2016 -0500

    loolwsd: log test exit and timeout
    
    Change-Id: I7563abe200bb42b90fcd4478d10c9d4184c188e5
    Reviewed-on: https://gerrit.libreoffice.org/30890
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/loolwsd/Unit.cpp b/loolwsd/Unit.cpp
index ca83f4e..8b30898 100644
--- a/loolwsd/Unit.cpp
+++ b/loolwsd/Unit.cpp
@@ -175,6 +175,7 @@ UnitKit::~UnitKit()
 
 void UnitBase::exitTest(TestResult result)
 {
+    LOG_INF("exitTest: " << result << ". Flagging for termination.");
     _setRetValue = true;
     _retValue = result == TestResult::TEST_OK ?
         Poco::Util::Application::EXIT_OK :
@@ -184,7 +185,7 @@ void UnitBase::exitTest(TestResult result)
 
 void UnitBase::timeout()
 {
-    std::cerr << "Timed out waiting for unit test to complete" << std::endl;
+    LOG_ERR("Timed out waiting for unit test to complete");
     exitTest(TestResult::TEST_TIMED_OUT);
 }
 


More information about the Libreoffice-commits mailing list