[Libreoffice-commits] online.git: wsd/DocumentBroker.cpp wsd/TileCache.cpp
Ashod Nakashian
ashod.nakashian at collabora.co.uk
Wed Apr 5 04:47:10 UTC 2017
wsd/DocumentBroker.cpp | 8 ++++++++
wsd/TileCache.cpp | 3 ++-
2 files changed, 10 insertions(+), 1 deletion(-)
New commits:
commit 2254b71682a7314c1113ce4aa521de786d1d69c1
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date: Wed Apr 5 00:26:09 2017 -0400
wsd: some informative logging
Change-Id: I4338f5bd8056d1d66da01efaa1a1fe54f8717793
Reviewed-on: https://gerrit.libreoffice.org/36116
Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
Tested-by: Ashod Nakashian <ashnakash at gmail.com>
diff --git a/wsd/DocumentBroker.cpp b/wsd/DocumentBroker.cpp
index 97626af9..cafbd424 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 4c1d7572..b744eded 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;
More information about the Libreoffice-commits
mailing list