wsd: some informative logging

Change-Id: I4338f5bd8056d1d66da01efaa1a1fe54f8717793
Reviewed-on: https://gerrit.libreoffice.org/36116
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
This commit is contained in:
Ashod Nakashian 2017-04-05 00:26:09 -04:00 committed by Ashod Nakashian
parent 38f955b5c5
commit 2254b71682
2 changed files with 10 additions and 1 deletions

View file

@ -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. // Terminate properly while we can.
//TODO: pass some sensible reason. //TODO: pass some sensible reason.
terminateChild("", false); terminateChild("", false);
@ -839,6 +843,10 @@ size_t DocumentBroker::removeSessionInternal(const std::string& id)
LOG_TRC("Removed " << (readonly ? "readonly" : "non-readonly") << LOG_TRC("Removed " << (readonly ? "readonly" : "non-readonly") <<
" session [" << id << "] from docKey [" << " session [" << id << "] from docKey [" <<
_docKey << "] to have " << count << " sessions."); _docKey << "] to have " << count << " sessions.");
for (const auto& pair : _sessions)
{
LOG_TRC("Session: " << pair.second->getName());
}
// Let the child know the client has disconnected. // Let the child know the client has disconnected.
const std::string msg("child-" + id + " disconnect"); const std::string msg("child-" + id + " disconnect");

View file

@ -53,7 +53,8 @@ TileCache::TileCache(const std::string& docURL,
_cacheDir(cacheDir) _cacheDir(cacheDir)
{ {
LOG_INF("TileCache ctor for uri [" << _docURL << LOG_INF("TileCache ctor for uri [" << _docURL <<
"] modifiedTime=" << (modifiedTime.raw()/1000000) << "], cacheDir: [" << _cacheDir <<
"], modifiedTime=" << (modifiedTime.raw()/1000000) <<
" getLastModified()=" << (getLastModified().raw()/1000000)); " getLastModified()=" << (getLastModified().raw()/1000000));
File directory(_cacheDir); File directory(_cacheDir);
std::string unsaved; std::string unsaved;