diff --git a/Command.php b/Command.php index 4fc7d52..33f03cb 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 = $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 {