改名
This commit is contained in:
+1
-3
@@ -14,7 +14,6 @@ use RdKafka\Exception;
|
|||||||
use RdKafka\KafkaConsumer;
|
use RdKafka\KafkaConsumer;
|
||||||
use RdKafka\TopicConf;
|
use RdKafka\TopicConf;
|
||||||
use Server\Abstracts\CustomProcess;
|
use Server\Abstracts\CustomProcess;
|
||||||
use Swoole\Coroutine;
|
|
||||||
use Swoole\Process;
|
use Swoole\Process;
|
||||||
use Throwable;
|
use Throwable;
|
||||||
|
|
||||||
@@ -152,8 +151,7 @@ class Kafka extends CustomProcess
|
|||||||
$conf->set('metadata.broker.list', $kafka['brokers']);
|
$conf->set('metadata.broker.list', $kafka['brokers']);
|
||||||
$conf->set('socket.timeout.ms', '30000');
|
$conf->set('socket.timeout.ms', '30000');
|
||||||
|
|
||||||
debug('kafka listen groupId ' . $kafka['groupId']);
|
info('kafka listen groupId ' . $kafka['groupId'] . ', brokers ' . $kafka['brokers']);
|
||||||
debug('kafka listen brokers ' . $kafka['brokers']);
|
|
||||||
|
|
||||||
if (function_exists('pcntl_sigprocmask')) {
|
if (function_exists('pcntl_sigprocmask')) {
|
||||||
pcntl_sigprocmask(SIG_BLOCK, array(SIGIO));
|
pcntl_sigprocmask(SIG_BLOCK, array(SIGIO));
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ class ServerManager
|
|||||||
}
|
}
|
||||||
|
|
||||||
$name = $customProcess->getProcessName($soloProcess);
|
$name = $customProcess->getProcessName($soloProcess);
|
||||||
debug(sprintf("Process %s start.", $name));
|
info(sprintf("Process %s start.", $name));
|
||||||
|
|
||||||
$system = sprintf('%s.process[%d]', Config::get('id', 'system-service'), $soloProcess->pid);
|
$system = sprintf('%s.process[%d]', Config::get('id', 'system-service'), $soloProcess->pid);
|
||||||
if (Kiri::getPlatform()->isLinux()) {
|
if (Kiri::getPlatform()->isLinux()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user