From f90e7edb32d4110f0963c61c3a1febfedff2e01a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 5 Mar 2021 15:00:32 +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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Database/Command.php b/Database/Command.php index 913c0ccc..40c061ee 100644 --- a/Database/Command.php +++ b/Database/Command.php @@ -130,6 +130,9 @@ class Command extends Component if ($this->prepare) { $this->prepare->closeCursor(); } + + logger()->write($this->sql . var_export($this->params, true), 'mysql'); + if (Config::get('debug.enable', false, false)) { $this->debug($this->sql . '。 Run-time: ' . (microtime(true) - $time)); }