From 9fa91a05ef64ac6823170e808d51380886a9f1a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 11 Jul 2022 18:34:30 +0800 Subject: [PATCH] modify plugin name --- Mysql/PDO.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Mysql/PDO.php b/Mysql/PDO.php index e351e77..fd3e9ad 100644 --- a/Mysql/PDO.php +++ b/Mysql/PDO.php @@ -233,7 +233,9 @@ class PDO implements StopHeartbeatCheck $this->pdo->getAttribute(\PDO::ATTR_SERVER_INFO); $result = true; } catch (\Throwable $throwable) { - Kiri::getLogger()->error($throwable->getMessage()); + if (!str_contains($throwable->getMessage(), 'Idle dis')) { + Kiri::getLogger()->error($throwable->getMessage()); + } $this->pdo = null; $result = false; } finally {