mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2025-08-18 10:55:36 +00:00
Only show ThreadNames in server debug MODE
This commit is contained in:
parent
b8bd939bd7
commit
4ecd57fed4
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user