From b690228ea22488374c074908cebc937a176ce2ce Mon Sep 17 00:00:00 2001 From: whwyy Date: Wed, 13 Dec 2023 18:25:06 +0800 Subject: [PATCH] eee --- Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Command.php b/Command.php index 33f03cb..ba0f428 100644 --- a/Command.php +++ b/Command.php @@ -172,7 +172,7 @@ class Command extends Component } catch (Throwable $throwable) { if ($this->isRefresh($throwable)) return $this->_prepare(); - $errorMsg = $this->sql . '.' . json_encode($this->params) . PHP_EOL . $throwable->getMessage(); + $errorMsg = $throwable->getMessage() . PHP_EOL . ' Exec: ' . $this->sql . '.' . json_encode($this->params); return $this->getLogger()->failure($errorMsg, 'mysql'); } finally {