(Windows) Fixed an issue where the log output time stamp was missing in es_log.txt when built using MinGW

This commit is contained in:
Leon Styhre 2023-06-28 22:21:42 +02:00
parent 37f33b182e
commit 1dca0673c5

View file

@ -70,7 +70,7 @@ std::ostringstream& Log::get(LogLevel level)
localtime_r(&t, &tm);
#endif
std::unique_lock<std::mutex> lock {sLogMutex};
mOutStringStream << std::put_time(&tm, "%b %d %T ") << mLogLevelMap[level] << ":\t";
mOutStringStream << std::put_time(&tm, "%b %d %H:%M:%S ") << mLogLevelMap[level] << ":\t";
mMessageLevel = level;
return mOutStringStream;