From 2ce699faa7e559d87d1f863eb9b86966f9667576 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 19 Sep 2022 18:51:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kiri-engine/Pool/Pool.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kiri-engine/Pool/Pool.php b/kiri-engine/Pool/Pool.php index 10decdcc..2009b969 100644 --- a/kiri-engine/Pool/Pool.php +++ b/kiri-engine/Pool/Pool.php @@ -64,7 +64,11 @@ class Pool extends Component $connection->stopHeartbeatCheck(); } } - $this->logger->warning('channel status', $channel->stats()); + if (\Kiri::isWorker() || \Kiri::isTask()) { + $state = json_encode($channel->stats(), JSON_UNESCAPED_UNICODE); + + $this->logger->warning('channel status(' . env('environmental_workerId') . '): ' . $state); + } }