mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-04 23:06:08 +00:00
Only show ThreadNames in server debug MODE
This commit is contained in:
@@ -7,9 +7,9 @@
|
||||
#include <chrono>
|
||||
#include <fstream>
|
||||
#include <mutex>
|
||||
#include <shared_mutex>
|
||||
#include <sstream>
|
||||
#include <thread>
|
||||
#include <shared_mutex>
|
||||
#include <unordered_map>
|
||||
|
||||
using RWMutex = std::shared_mutex;
|
||||
@@ -75,9 +75,11 @@ std::string getDate() {
|
||||
<< Hour << ":"
|
||||
<< Min << ":"
|
||||
<< Secs
|
||||
<< "] "
|
||||
<< ThreadName()
|
||||
<< " ";
|
||||
<< "] ";
|
||||
if (Debug) {
|
||||
date << ThreadName()
|
||||
<< " ";
|
||||
}
|
||||
return date.str();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user