From 636c96b73c976fa33ea77c10d92827fa1d2aa806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 24 Aug 2023 14:01:20 +0800 Subject: [PATCH] qqq --- Connection.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Connection.php b/Connection.php index fecfa17..ebfd698 100644 --- a/Connection.php +++ b/Connection.php @@ -160,12 +160,12 @@ class Connection extends Component } [$client, $time] = $data; - $this->logger->error(((time() - $time) . ' ' . $this->idle_time), [$this->cds]); + file_put_contents('php://output', ((time() - $time) . ' ' . $this->idle_time), FILE_APPEND); if ((time() - $time) < $this->idle_time && $this->canUse($client)) { return $client; } - $this->logger->error('PDO连接已失效, 空闲超时或已不可用,重新获取.', [$this->cds]); + file_put_contents('php://output', 'PDO连接已失效, 空闲超时或已不可用,重新获取.', FILE_APPEND); $this->pool()->abandon($this->cds); Waite::sleep(10);