ea
This commit is contained in:
@@ -123,6 +123,8 @@ class Command extends Component
|
|||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
} catch (Throwable $throwable) {
|
} catch (Throwable $throwable) {
|
||||||
|
$this->getLogger()->failure(throwable($throwable), 'mysql');
|
||||||
|
|
||||||
if ($this->isRefresh($throwable)) return $this->search($method);
|
if ($this->isRefresh($throwable)) return $this->search($method);
|
||||||
|
|
||||||
$errorMsg = $throwable->getMessage() . PHP_EOL . ' Sql: ' . $this->sql . '.' . json_encode($this->params);
|
$errorMsg = $throwable->getMessage() . PHP_EOL . ' Sql: ' . $this->sql . '.' . json_encode($this->params);
|
||||||
@@ -167,6 +169,8 @@ class Command extends Component
|
|||||||
|
|
||||||
return $result == 0 ? $prepare->rowCount() : (int)$result;
|
return $result == 0 ? $prepare->rowCount() : (int)$result;
|
||||||
} catch (Throwable $throwable) {
|
} catch (Throwable $throwable) {
|
||||||
|
$this->getLogger()->failure(throwable($throwable), 'mysql');
|
||||||
|
|
||||||
if ($this->isRefresh($throwable)) return $this->_prepare();
|
if ($this->isRefresh($throwable)) return $this->_prepare();
|
||||||
|
|
||||||
$errorMsg = $throwable->getMessage() . PHP_EOL . ' Sql: ' . $this->sql . '.' . json_encode($this->params);
|
$errorMsg = $throwable->getMessage() . PHP_EOL . ' Sql: ' . $this->sql . '.' . json_encode($this->params);
|
||||||
|
|||||||
Reference in New Issue
Block a user