From d34eb2bf53a76cbf8e2c811220b5db2a66e5f9ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 29 Jun 2021 14:09:11 +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 --- Database/Command.php | 2 +- System/Cache/Redis.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Database/Command.php b/Database/Command.php index 58bd3228..5878d37e 100644 --- a/Database/Command.php +++ b/Database/Command.php @@ -128,7 +128,7 @@ class Command extends Component $result = $this->search($type); } if (microtime(true) - $time >= 0.02) { - $this->debug('Mysql:' . Json::encode([$this->sql, $this->params]) . (microtime(true) - $time)); + $this->warning('Mysql:' . Json::encode([$this->sql, $this->params]) . (microtime(true) - $time)); } if ($this->prepare) { $this->prepare->closeCursor(); diff --git a/System/Cache/Redis.php b/System/Cache/Redis.php index 88f5e757..403e2d6b 100644 --- a/System/Cache/Redis.php +++ b/System/Cache/Redis.php @@ -77,7 +77,7 @@ class Redis extends Component } if (microtime(true) - $time >= 0.02) { - $this->debug('Redis:' . Json::encode([$name, $arguments])); + $this->warning('Redis:' . Json::encode([$name, $arguments])); } return $data;