From b9c9e8216affcd7e9753fbbdb3272d40de761d95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Sun, 14 Feb 2021 21:36:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Kafka/Kafka.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Kafka/Kafka.php b/Kafka/Kafka.php index 0e7f3579..f5e31510 100644 --- a/Kafka/Kafka.php +++ b/Kafka/Kafka.php @@ -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;