This commit is contained in:
2021-06-29 14:09:11 +08:00
parent c4c6d9a58e
commit d34eb2bf53
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ class Command extends Component
$result = $this->search($type); $result = $this->search($type);
} }
if (microtime(true) - $time >= 0.02) { 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) { if ($this->prepare) {
$this->prepare->closeCursor(); $this->prepare->closeCursor();
+1 -1
View File
@@ -77,7 +77,7 @@ class Redis extends Component
} }
if (microtime(true) - $time >= 0.02) { if (microtime(true) - $time >= 0.02) {
$this->debug('Redis:' . Json::encode([$name, $arguments])); $this->warning('Redis:' . Json::encode([$name, $arguments]));
} }
return $data; return $data;