loolwsd: logs
Change-Id: Ib964578ce84eb3dd4b96d483b0e8b53c6cfac853 Reviewed-on: https://gerrit.libreoffice.org/21180 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
This commit is contained in:
parent
900c344a7e
commit
0cdb8c931f
2 changed files with 8 additions and 1 deletions
|
@ -233,7 +233,7 @@ bool MasterProcessSession::_handleInput(const char *buffer, int length)
|
|||
std::unique_lock<std::mutex> lock(_availableChildSessionMutex);
|
||||
_availableChildSessions.emplace(getId(), shared_from_this());
|
||||
|
||||
Log::info() << _kindString << " mapped " << this << " childId=" << childId << ", id=" << getId()
|
||||
Log::info() << getName() << " mapped " << this << " childId=" << childId << ", id=" << getId()
|
||||
<< " into _availableChildSessions, size=" << _availableChildSessions.size() << Log::end;
|
||||
|
||||
_childId = childId;
|
||||
|
|
|
@ -40,11 +40,18 @@ public:
|
|||
{
|
||||
const std::string input = _queue.get();
|
||||
if (input == "eof")
|
||||
{
|
||||
Log::info("Recieved EOF. Finishing.");
|
||||
break;
|
||||
}
|
||||
|
||||
if (!_session->handleInput(input.c_str(), input.size()))
|
||||
{
|
||||
Log::info("Socket handler flagged for finishing.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (const std::exception& exc)
|
||||
{
|
||||
Log::error(std::string("Exception: ") + exc.what());
|
||||
|
|
Loading…
Reference in a new issue