From 08da0785462ea57e764dc9ee549efee79e18c988 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 20 Mar 2019 13:17:57 +0200 Subject: [PATCH] When FAKESOCKET_LOG_ALWAYS_STDERR, output also the thread id --- net/FakeSocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/FakeSocket.cpp b/net/FakeSocket.cpp index a0e86f2a3..e230428aa 100644 --- a/net/FakeSocket.cpp +++ b/net/FakeSocket.cpp @@ -83,7 +83,7 @@ static std::string flush() { static bool alwaysStderr = std::getenv("FAKESOCKET_LOG_ALWAYS_STDERR") != nullptr; if (alwaysStderr) - std::cerr << loggingBuffer.str() << std::endl; + std::cerr << std::this_thread::get_id() << ":" << loggingBuffer.str() << std::endl; else if (loggingCallback != nullptr) loggingCallback(loggingBuffer.str()); loggingBuffer.str("");