List the thread config value in lib/default.php

This commit is contained in:
Mikael Nordfeldth 2017-08-03 09:53:00 +02:00
parent dea9f43d85
commit 6938d26524
2 changed files with 3 additions and 0 deletions

View File

@ -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/',

View File

@ -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');