From de9a12addb748c0ba1fe51cd47bc5dd2b6ada1f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 18 Mar 2021 18:34:14 +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 --- HttpServer/Events/OnWorkerStart.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/HttpServer/Events/OnWorkerStart.php b/HttpServer/Events/OnWorkerStart.php index 85e8e518..edded11a 100644 --- a/HttpServer/Events/OnWorkerStart.php +++ b/HttpServer/Events/OnWorkerStart.php @@ -35,10 +35,8 @@ class OnWorkerStart extends Callback putenv('state=start'); putenv('worker=' . $worker_id); - if (env('debug', 'false') == 'true') { - $attribute = Snowflake::app()->getAttributes(); - $attribute->read(directory('app'), 'App'); - } + $attribute = Snowflake::app()->getAttributes(); + $attribute->read(directory('app'), 'App'); $this->set_process_name($server, $worker_id);