# HG changeset patch # User Alain Mazy # Date 1761313884 -7200 # Node ID 36ba64cc12082bce7b5c0d81ce21922a5aa27a98 # Parent 6bd98dfa6bb82e7d0dba6d842a410f1b7b7cf75f threadname for debug versions only diff -r 6bd98dfa6bb8 -r 36ba64cc1208 OrthancFramework/Sources/Logging.cpp --- a/OrthancFramework/Sources/Logging.cpp Fri Oct 24 15:05:31 2025 +0200 +++ b/OrthancFramework/Sources/Logging.cpp Fri Oct 24 15:51:24 2025 +0200 @@ -30,7 +30,7 @@ #include #include -#if defined(__linux__) +#if defined(__linux__) && !defined(NDEBUG) #include #endif @@ -663,7 +663,7 @@ threadNames_[id] = name; -#if defined(__linux__) +#if defined(__linux__) && !defined(NDEBUG) // set the thread name at "system" level too -> required to have the thread names visible in GDB ! pthread_setname_np(pthread_self(), name.substr(0, 15).c_str()); // thread names are limited to 15 in Linux #endif