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); + } }