eee
This commit is contained in:
+1
-1
@@ -172,7 +172,7 @@ class Command extends Component
|
|||||||
} catch (Throwable $throwable) {
|
} catch (Throwable $throwable) {
|
||||||
if ($this->isRefresh($throwable)) return $this->_prepare();
|
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');
|
return $this->getLogger()->failure($errorMsg, 'mysql');
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user