Only show ThreadNames in server debug MODE

This commit is contained in:
Lion Kortlepel
2020-11-08 13:06:38 +01:00
parent b8bd939bd7
commit 4ecd57fed4
+5 -3
View File
@@ -7,9 +7,9 @@
#include <chrono> #include <chrono>
#include <fstream> #include <fstream>
#include <mutex> #include <mutex>
#include <shared_mutex>
#include <sstream> #include <sstream>
#include <thread> #include <thread>
#include <shared_mutex>
#include <unordered_map> #include <unordered_map>
using RWMutex = std::shared_mutex; using RWMutex = std::shared_mutex;
@@ -75,9 +75,11 @@ std::string getDate() {
<< Hour << ":" << Hour << ":"
<< Min << ":" << Min << ":"
<< Secs << Secs
<< "] " << "] ";
<< ThreadName() if (Debug) {
date << ThreadName()
<< " "; << " ";
}
return date.str(); return date.str();
} }