From 6e37f82d45a592bfb0dd5e00e7075327b9f0b11c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 27 Apr 2021 16:43:40 +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 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Database/Command.php b/Database/Command.php index 3984b4e9..7addf626 100644 --- a/Database/Command.php +++ b/Database/Command.php @@ -129,7 +129,7 @@ class Command extends Component $result = $this->search($type); } if (microtime(true) - $time >= 0.03) { - $this->warning('execute sql `' . $this->sql . '` use time ' . (microtime(true) - $time)); + $this->warning('execute sql Worker.' . env('worker') . '`' . $this->sql . '` use time ' . (microtime(true) - $time)); } } catch (\Throwable $exception) { $message = $this->sql . '. error: ' . $exception->getMessage();