summaryrefslogtreecommitdiffstats
path: root/net/Socket.cpp
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2019-09-29 23:32:45 -0400
committerMichael Meeks <michael.meeks@collabora.com>2019-10-28 10:48:01 +0100
commita4a4d656322f69c9f7c6b5ac54f8c8baeacc5a86 (patch)
tree1579e90c7d35104f74f35e31ffe422149f123895 /net/Socket.cpp
parentwsd: reduce public surface area of DocumentBroker (diff)
downloadonline-a4a4d656322f69c9f7c6b5ac54f8c8baeacc5a86.tar.gz
online-a4a4d656322f69c9f7c6b5ac54f8c8baeacc5a86.zip
wsd: logging improvements
Always log when we set the termination flag so we can trace how (and implicitly why) we terminated. In practice trace logging is not enabled, so a key event such as termination should be logged at info level. Reviewed-on: https://gerrit.libreoffice.org/80324 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com> (cherry picked from commit 3f8d516e1399df687c2935fc551b171cbd850b7b) Change-Id: Id6615181c81ea56777f44b551b39925065b0e578 Reviewed-on: https://gerrit.libreoffice.org/81562 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'net/Socket.cpp')
-rw-r--r--net/Socket.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/net/Socket.cpp b/net/Socket.cpp
index 345e1d6524..cf70871702 100644
--- a/net/Socket.cpp
+++ b/net/Socket.cpp
@@ -174,11 +174,9 @@ void SocketPoll::pollingThreadEntry()
try
{
Util::setThreadName(_name);
- LOG_INF("Starting polling thread [" << _name << "].");
-
_owner = std::this_thread::get_id();
- LOG_DBG("Thread affinity of " << _name << " set to " <<
- Log::to_string(_owner) << ".");
+ LOG_INF("Starting polling thread [" << _name << "] with thread affinity set to "
+ << Log::to_string(_owner) << '.');
// Invoke the virtual implementation.
pollingThread();
@@ -193,6 +191,7 @@ void SocketPoll::pollingThreadEntry()
}
_threadFinished = true;
+ LOG_INF("Finished polling thread [" << _name << "].");
}
void SocketPoll::wakeupWorld()