This commit is contained in:
2023-12-13 19:05:44 +08:00
parent 0833e87362
commit 4fbbbe0cfe
+2 -2
View File
@@ -133,7 +133,7 @@ class Command extends Component
$errorMsg = $throwable->getMessage() . PHP_EOL . ' Sql: ' . $this->sql . '.' . json_encode($this->params);
return $this->getLogger()->failure($errorMsg, 'mysql');
return $this->getLogger()->failure($errorMsg . PHP_EOL, 'mysql');
} finally {
$this->connection->release($client);
}
@@ -174,7 +174,7 @@ class Command extends Component
$errorMsg = $throwable->getMessage() . PHP_EOL . ' Sql: ' . $this->sql . '.' . json_encode($this->params);
return $this->getLogger()->failure($errorMsg, 'mysql');
return $this->getLogger()->failure($errorMsg . PHP_EOL, 'mysql');
} finally {
$this->connection->release($client);
}