summaryrefslogtreecommitdiff
path: root/src/debug/Log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug/Log.cpp')
-rw-r--r--src/debug/Log.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/debug/Log.cpp b/src/debug/Log.cpp
index b5865f0a..8d84840e 100644
--- a/src/debug/Log.cpp
+++ b/src/debug/Log.cpp
@@ -24,7 +24,9 @@ void Debug::log(eLogLevel level, std::string str) {
if (m_shuttingDown)
return;
- std::string coloredStr = str;
+ std::lock_guard<std::mutex> guard(m_logMutex);
+
+ std::string coloredStr = str;
//NOLINTBEGIN
switch (level) {
case LOG: