From 6b45cdb0f8f028897216351004604872b24c167b Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 28 Jan 2023 13:36:22 +0100 Subject: [PATCH] Maybe fixed a rare locking issue. --- es-core/src/Log.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-core/src/Log.cpp b/es-core/src/Log.cpp index 8e2ab5de3..821852a12 100644 --- a/es-core/src/Log.cpp +++ b/es-core/src/Log.cpp @@ -77,8 +77,8 @@ std::ostringstream& Log::get(LogLevel level) Log::~Log() { - mOutStringStream << std::endl; std::unique_lock lock {sLogMutex}; + mOutStringStream << std::endl; if (!sFile.is_open()) { // Not open yet, print to stdout.