From 6938d26524d7b82914d9a16d09fc81f30e204d04 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 3 Aug 2017 09:53:00 +0200 Subject: [PATCH] List the thread config value in lib/default.php --- lib/default.php | 1 + scripts/queuedaemon.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/default.php b/lib/default.php index f465f20bf6..6420a05e5f 100644 --- a/lib/default.php +++ b/lib/default.php @@ -98,6 +98,7 @@ $default = 'queue' => array('enabled' => true, 'daemon' => false, # Use queuedaemon. Default to false + 'threads' => null, # an empty value here uses processor count to determine 'subsystem' => 'db', # default to database, or 'stomp' 'stomp_server' => null, 'queue_basename' => '/queue/statusnet/', diff --git a/scripts/queuedaemon.php b/scripts/queuedaemon.php index 8fb0f8e0ae..e5dc1af810 100755 --- a/scripts/queuedaemon.php +++ b/scripts/queuedaemon.php @@ -176,6 +176,8 @@ if (!$threads) { $threads = getProcessorCount(); } +common_log(LOG_INFO, sprintf('Launching QueueDaemon background process with %1$d threads.', $threads)); + $daemonize = !(have_option('f') || have_option('--foreground')); $all = have_option('a') || have_option('--all');