diff --git a/src/Common.cpp b/src/Common.cpp index 8f489fd..8a830cd 100644 --- a/src/Common.cpp +++ b/src/Common.cpp @@ -121,7 +121,8 @@ void RegisterThread(const std::string& str) { ThreadId = std::to_string(gettid()); #endif if (Application::Settings.DebugModeEnabled) { - std::cout << ("Thread \"" + str + "\" is TID " + ThreadId) << std::endl; + std::ofstream ThreadFile("Threads.log", std::ios::app); + ThreadFile << ("Thread \"" + str + "\" is TID " + ThreadId) << std::endl; } auto Lock = std::unique_lock(ThreadNameMapMutex); threadNameMap[std::this_thread::get_id()] = str;