modify plugin name
This commit is contained in:
+2
-2
@@ -125,12 +125,12 @@ class Command extends Component
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param int $time
|
* @param float $time
|
||||||
* @param mixed $result
|
* @param mixed $result
|
||||||
* @return mixed
|
* @return mixed
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
private function _timeout_log(int $time, mixed $result): mixed
|
private function _timeout_log(float $time, mixed $result): mixed
|
||||||
{
|
{
|
||||||
if (microtime(true) - $time >= 0.02) {
|
if (microtime(true) - $time >= 0.02) {
|
||||||
$this->warning('Mysql:' . Json::encode([$this->sql, $this->params]) . (microtime(true) - $time));
|
$this->warning('Mysql:' . Json::encode([$this->sql, $this->params]) . (microtime(true) - $time));
|
||||||
|
|||||||
Reference in New Issue
Block a user