From 8cd195f4eea0d6bd20f9aecfb1bdf1a20c9fb3b3 Mon Sep 17 00:00:00 2001 From: whwyy Date: Wed, 13 Dec 2023 18:27:12 +0800 Subject: [PATCH] eee --- Command.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Command.php b/Command.php index ba0f428..f481a9d 100644 --- a/Command.php +++ b/Command.php @@ -131,7 +131,7 @@ class Command extends Component } catch (Throwable $throwable) { if ($this->isRefresh($throwable)) return $this->search($method); - $errorMsg = $throwable->getMessage() . PHP_EOL . ' Exec: ' . $this->sql . '.' . json_encode($this->params); + $errorMsg = $throwable->getMessage() . PHP_EOL . ' Sql: ' . $this->sql . '.' . json_encode($this->params); return $this->getLogger()->failure($errorMsg, 'mysql'); } finally { @@ -172,7 +172,7 @@ class Command extends Component } catch (Throwable $throwable) { if ($this->isRefresh($throwable)) return $this->_prepare(); - $errorMsg = $throwable->getMessage() . PHP_EOL . ' Exec: ' . $this->sql . '.' . json_encode($this->params); + $errorMsg = $throwable->getMessage() . PHP_EOL . ' Sql: ' . $this->sql . '.' . json_encode($this->params); return $this->getLogger()->failure($errorMsg, 'mysql'); } finally {