diff OrthancFramework/Sources/JobsEngine/JobsEngine.cpp @ 5450:9ffd6d18daf3 pg-transactions

log lines now contain the thread name
author Alain Mazy <am@osimis.io>
date Tue, 05 Dec 2023 16:26:35 +0100
parents 0ea402b4d901
children 48b8dae6dc77
line wrap: on
line diff
--- a/OrthancFramework/Sources/JobsEngine/JobsEngine.cpp	Wed Nov 29 09:28:21 2023 +0100
+++ b/OrthancFramework/Sources/JobsEngine/JobsEngine.cpp	Tue Dec 05 16:26:35 2023 +0100
@@ -122,7 +122,7 @@
                           size_t workerIndex)
   {
     assert(engine != NULL);
-
+    Logging::SetCurrentThreadName(std::string("JOBS-WORKER-") + boost::lexical_cast<std::string>(workerIndex));
     CLOG(INFO, JOBS) << "Worker thread " << workerIndex << " has started";
 
     while (engine->IsRunning())