From 445cfc8f894c35e7c2f37f7f9b80b377f681558b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 27 Apr 2021 14:07:12 +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/Pool/Connection.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/System/Pool/Connection.php b/System/Pool/Connection.php index 1fc83968..d6fe9b4a 100644 --- a/System/Pool/Connection.php +++ b/System/Pool/Connection.php @@ -146,6 +146,7 @@ class Connection extends Pool * @param string $name * @param mixed $config * @return PDO + * @throws Exception */ public function createClient(string $name, mixed $config): PDO { @@ -194,7 +195,7 @@ class Connection extends Pool return; } - $this->error('recover db client ' . $coroutineName . ' length ' . $this->size($coroutineName)); + $this->error('Worker ' . env('worker') . ' recover db client ' . $coroutineName . ' length ' . $this->size($coroutineName)); /** @var PDO $client */ $client = Context::getContext($coroutineName);