From 2254b71682a7314c1113ce4aa521de786d1d69c1 Mon Sep 17 00:00:00 2001 From: Ashod Nakashian Date: Wed, 5 Apr 2017 00:26:09 -0400 Subject: [PATCH] wsd: some informative logging Change-Id: I4338f5bd8056d1d66da01efaa1a1fe54f8717793 Reviewed-on: https://gerrit.libreoffice.org/36116 Reviewed-by: Ashod Nakashian Tested-by: Ashod Nakashian --- wsd/DocumentBroker.cpp | 8 ++++++++ wsd/TileCache.cpp | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/wsd/DocumentBroker.cpp b/wsd/DocumentBroker.cpp index 97626af93..cafbd4248 100644 --- a/wsd/DocumentBroker.cpp +++ b/wsd/DocumentBroker.cpp @@ -243,6 +243,10 @@ void DocumentBroker::pollThread() } } + LOG_INF("Finished polling doc [" << _docKey << "]. stop: " << _stop << ", continuePolling: " << + _poll->continuePolling() << ", TerminationFlag: " << TerminationFlag << + ", ShutdownRequestFlag: " << ShutdownRequestFlag << "."); + // Terminate properly while we can. //TODO: pass some sensible reason. terminateChild("", false); @@ -839,6 +843,10 @@ size_t DocumentBroker::removeSessionInternal(const std::string& id) LOG_TRC("Removed " << (readonly ? "readonly" : "non-readonly") << " session [" << id << "] from docKey [" << _docKey << "] to have " << count << " sessions."); + for (const auto& pair : _sessions) + { + LOG_TRC("Session: " << pair.second->getName()); + } // Let the child know the client has disconnected. const std::string msg("child-" + id + " disconnect"); diff --git a/wsd/TileCache.cpp b/wsd/TileCache.cpp index 4c1d75724..b744eded5 100644 --- a/wsd/TileCache.cpp +++ b/wsd/TileCache.cpp @@ -53,7 +53,8 @@ TileCache::TileCache(const std::string& docURL, _cacheDir(cacheDir) { LOG_INF("TileCache ctor for uri [" << _docURL << - "] modifiedTime=" << (modifiedTime.raw()/1000000) << + "], cacheDir: [" << _cacheDir << + "], modifiedTime=" << (modifiedTime.raw()/1000000) << " getLastModified()=" << (getLastModified().raw()/1000000)); File directory(_cacheDir); std::string unsaved;