This commit is contained in:
2021-02-14 21:36:22 +08:00
parent 643c787a4b
commit b9c9e8216a
+3 -1
View File
@@ -52,7 +52,9 @@ class Kafka extends \Snowflake\Process\Process
private function waite(array $kafkaServer)
{
try {
swoole_set_process_name('Kafka_' . $kafkaServer['topic']);
$prefix = ucfirst(rtrim(Snowflake::app()->id, ':'));
swoole_set_process_name($prefix . ' Kafka_' . $kafkaServer['topic']);
[$config, $topic, $conf] = $this->kafkaConfig($kafkaServer);
if (empty($config) && empty($topic) && empty($conf)) {
return;