]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: Move the "launching <n> workers" message to the right place
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 30 Jul 2018 09:36:52 +0000 (11:36 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 30 Jul 2018 13:08:56 +0000 (15:08 +0200)
pdns/pdns_recursor.cc

index ab69e74c81bf1ec51236dd08ad1578d72266084a..64c4c1e965e4ac42f543d5235f67b2b20b50b3f1 100644 (file)
@@ -3634,7 +3634,6 @@ static int serviceMain(int argc, char*argv[])
     recursorThread(currentThreadId++);
   }
   else {
-    g_log<<Logger::Warning<<"Launching "<< g_numWorkerThreads <<" worker threads"<<endl;
 
     if (g_weDistributeQueries) {
       g_log<<Logger::Warning<<"Launching "<< g_numDistributorThreads <<" distributor threads"<<endl;
@@ -3647,6 +3646,8 @@ static int serviceMain(int argc, char*argv[])
       }
     }
 
+    g_log<<Logger::Warning<<"Launching "<< g_numWorkerThreads <<" worker threads"<<endl;
+
     for(unsigned int n=0; n < g_numWorkerThreads; ++n) {
       auto& infos = s_threadInfos.at(currentThreadId);
       infos.isListener = g_weDistributeQueries ? false : true;