From 6e12a6e012b2a580b1f4b365ce566394be37aeca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 23 Feb 2021 11:25:02 +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 --- System/Error/Logger.php | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/System/Error/Logger.php b/System/Error/Logger.php index 2be7f0f8..fc957d02 100644 --- a/System/Error/Logger.php +++ b/System/Error/Logger.php @@ -30,21 +30,6 @@ class Logger extends Component public int $worker_id; - - private Channel $channel; - - - public function init() - { - $this->channel = new Channel(5000); - Coroutine::create(function () { - while ($message = $this->channel->pop(-1)) { - echo $message; - } - }); - } - - /** * @param $message * @param string $method @@ -141,7 +126,7 @@ class Logger extends Component */ public function output($message) { - $this->channel->push($message); + echo $message; }