diff --git a/src/Common.cpp b/src/Common.cpp index 6ea929f..8f489fd 100644 --- a/src/Common.cpp +++ b/src/Common.cpp @@ -115,12 +115,14 @@ std::string ThreadName(bool DebugModeOverride) { void RegisterThread(const std::string& str) { std::string ThreadId; - #ifdef WIN32 - ThreadId = std::to_string(GetCurrentThreadId()); - #else - ThreadId = std::to_string(gettid()); - #endif - beammp_debug("Thread \"" + str + "\" is TID " + ThreadId); +#ifdef WIN32 + ThreadId = std::to_string(GetCurrentThreadId()); +#else + ThreadId = std::to_string(gettid()); +#endif + if (Application::Settings.DebugModeEnabled) { + std::cout << ("Thread \"" + str + "\" is TID " + ThreadId) << std::endl; + } auto Lock = std::unique_lock(ThreadNameMapMutex); threadNameMap[std::this_thread::get_id()] = str; }