loolwsd: logs and comments
Change-Id: I2fbfb7ee7ada48390bec65ee6911bde00885fbdb Reviewed-on: https://gerrit.libreoffice.org/23450 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
This commit is contained in:
parent
66c8c0a300
commit
ca9c14dfdd
5 changed files with 7 additions and 4 deletions
|
@ -86,8 +86,7 @@ public:
|
|||
|
||||
if (_storage)
|
||||
{
|
||||
// Already loaded. Only validate.
|
||||
|
||||
// Already loaded. Nothing to do.
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -836,7 +836,7 @@ int main(int argc, char** argv)
|
|||
// Figure out how many children we need. Always create at least as many
|
||||
// as configured pre-spawn or one more than requested (whichever is larger).
|
||||
int spawn = std::max(static_cast<int>(forkCounter) + 1, numPreSpawnedChildren);
|
||||
Log::debug() << "Creating " << spawn << (spawn == 1 ? "child" : "children") << ". Current total: "
|
||||
Log::debug() << "Creating " << spawn << (spawn == 1 ? " child" : " children") << ". Current total: "
|
||||
<< total << ", Empty: " << empty << Log::end;
|
||||
do
|
||||
{
|
||||
|
|
|
@ -630,6 +630,8 @@ private:
|
|||
|
||||
if (docBroker->getSessionsCount() == 1 && !normalShutdown)
|
||||
{
|
||||
//TODO: This really should move to the kit, where it
|
||||
// knows if a doc is unsaved, and if other views are open.
|
||||
Log::info("Non-deliberate shutdown of the last session, saving the document before tearing down.");
|
||||
queue.put("uno .uno:Save");
|
||||
}
|
||||
|
|
|
@ -778,6 +778,7 @@ void MasterProcessSession::dispatchChild()
|
|||
_peer = childSession;
|
||||
childSession->_peer = shared_from_this();
|
||||
childSession->_docBroker = _docBroker;
|
||||
Log::debug("Connected " + getName() + " - " + childSession->getName() + ".");
|
||||
|
||||
std::ostringstream oss;
|
||||
oss << "load";
|
||||
|
|
|
@ -35,6 +35,7 @@ public:
|
|||
_jailPath(jailPath),
|
||||
_uri(uri)
|
||||
{
|
||||
Log::debug("Storage ctor: " + uri);
|
||||
}
|
||||
|
||||
std::string getLocalRootPath() const
|
||||
|
@ -180,7 +181,7 @@ public:
|
|||
logger << "WOPI::GetFile header for URI [" << _uri << "]:\n";
|
||||
for (auto& pair : response)
|
||||
{
|
||||
logger << '\t' + pair.first + ": " + pair.second << '\n';
|
||||
logger << '\t' + pair.first + ": " + pair.second << " / ";
|
||||
}
|
||||
|
||||
logger << Log::end;
|
||||
|
|
Loading…
Reference in a new issue