mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
Attempt to fix a log output deadlock issue.
This commit is contained in:
parent
6a2a3b1259
commit
782d68f906
|
@ -85,6 +85,7 @@ std::ostringstream& Log::get(LogLevel level)
|
|||
#else
|
||||
localtime_r(&t, &tm);
|
||||
#endif
|
||||
std::unique_lock<std::mutex> lock {sLogMutex};
|
||||
mOutStringStream << std::put_time(&tm, "%b %d %T ") << mLogLevelMap[level] << ":\t";
|
||||
mMessageLevel = level;
|
||||
|
||||
|
|
Loading…
Reference in a new issue