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;