When FAKESOCKET_LOG_ALWAYS_STDERR, output also the thread id
This commit is contained in:
parent
345df913de
commit
08da078546
1 changed files with 1 additions and 1 deletions
|
@ -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("");
|
||||
|
|
Loading…
Reference in a new issue