mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-04 00:36:14 +00:00
Lua: info,debug -> trace
This commit is contained in:
parent
a3a18a3b56
commit
041db23a69
@ -159,7 +159,7 @@ std::string ThreadName(bool DebugModeOverride) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void RegisterThread(const std::string& str) {
|
void RegisterThread(const std::string& str) {
|
||||||
beammp_info(str + " is " + std::to_string(gettid()));
|
beammp_trace(str + " is " + std::to_string(gettid()));
|
||||||
auto Lock = std::unique_lock(ThreadNameMapMutex);
|
auto Lock = std::unique_lock(ThreadNameMapMutex);
|
||||||
threadNameMap[std::this_thread::get_id()] = str;
|
threadNameMap[std::this_thread::get_id()] = str;
|
||||||
}
|
}
|
||||||
|
@ -93,7 +93,7 @@ void TLuaEngine::operator()() {
|
|||||||
< std::chrono::milliseconds(10)) {
|
< std::chrono::milliseconds(10)) {
|
||||||
std::this_thread::sleep_for(Diff);
|
std::this_thread::sleep_for(Diff);
|
||||||
} else {
|
} else {
|
||||||
beammp_debug("Event loop cannot keep up!");
|
beammp_trace("Event loop cannot keep up!");
|
||||||
}
|
}
|
||||||
Before = std::chrono::high_resolution_clock::now();
|
Before = std::chrono::high_resolution_clock::now();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user