prepend . to Threads.log to make it invisible on *nix

This commit is contained in:
Lion Kortlepel 2022-03-24 14:47:15 +01:00
parent 7a814ed35e
commit cd4332b790
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -154,7 +154,7 @@ void RegisterThread(const std::string& str) {
ThreadId = std::to_string(gettid()); ThreadId = std::to_string(gettid());
#endif #endif
if (Application::Settings.DebugModeEnabled) { if (Application::Settings.DebugModeEnabled) {
std::ofstream ThreadFile("Threads.log", std::ios::app); std::ofstream ThreadFile(".Threads.log", std::ios::app);
ThreadFile << ("Thread \"" + str + "\" is TID " + ThreadId) << std::endl; ThreadFile << ("Thread \"" + str + "\" is TID " + ThreadId) << std::endl;
} }
auto Lock = std::unique_lock(ThreadNameMapMutex); auto Lock = std::unique_lock(ThreadNameMapMutex);