This commit is contained in:
2023-12-13 18:23:24 +08:00
parent 8685e039a4
commit 0e20ab2167
+1 -1
View File
@@ -131,7 +131,7 @@ class Command extends Component
} catch (Throwable $throwable) {
if ($this->isRefresh($throwable)) return $this->search($method);
$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 {