From e55be953bf5fe715a2efef616462cc85ac475752 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 12 Jan 2022 11:41:26 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=94=B9=E5=90=8D"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit fdf58326 --- Broadcast/Message.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Broadcast/Message.php b/Broadcast/Message.php index e39bd0e..01436f4 100644 --- a/Broadcast/Message.php +++ b/Broadcast/Message.php @@ -3,7 +3,9 @@ namespace Kiri\Server\Broadcast; +use Kiri\Kiri; use Kiri\Server\Contract\OnPipeMessageInterface; +use Psr\Log\LoggerInterface; class Message implements OnPipeMessageInterface { @@ -21,9 +23,9 @@ class Message implements OnPipeMessageInterface */ public function process(): void { - $workerId = func_get_args()[1]; - - var_dump($workerId, $this->data); + $logger = Kiri::getDi()->get(LoggerInterface::class); + $logger->debug('workerId::' . env('environmental_workerId')); + $logger->debug($this->data->data . '::' . static::class); } }