From 6b79e542af0687e2d9cd90236e1ec779196427fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 27 Apr 2021 14:05:42 +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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/System/Pool/Connection.php b/System/Pool/Connection.php index 764bdcde..1fc83968 100644 --- a/System/Pool/Connection.php +++ b/System/Pool/Connection.php @@ -163,6 +163,7 @@ class Connection extends Pool $link->query('SET NAMES ' . $charset); } + $this->printClients($config['cds'], '', ''); $this->increment($name); return $link; @@ -173,9 +174,11 @@ class Connection extends Pool * @param $cds * @param $coroutineName * @param false $isBefore + * @throws Exception */ public function printClients($cds, $coroutineName, $isBefore = false) { + $this->success('create client connect ' . $cds); } @@ -191,7 +194,7 @@ class Connection extends Pool return; } - $this->error('recover db client ' . $coroutineName); + $this->error('recover db client ' . $coroutineName . ' length ' . $this->size($coroutineName)); /** @var PDO $client */ $client = Context::getContext($coroutineName);