mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 19:38:26 +00:00
Fixing DboSource::execute() so it only logs when fullDebug is set to true
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3782 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
b4306ac594
commit
29ba60481a
1 changed files with 5 additions and 2 deletions
|
@ -265,7 +265,10 @@ class DboSource extends DataSource {
|
||||||
$this->took = round((getMicrotime() - $t) * 1000, 0);
|
$this->took = round((getMicrotime() - $t) * 1000, 0);
|
||||||
$this->error = $this->lastError();
|
$this->error = $this->lastError();
|
||||||
$this->numRows = $this->lastNumRows($this->_result);
|
$this->numRows = $this->lastNumRows($this->_result);
|
||||||
|
|
||||||
|
if($this->fullDebug) {
|
||||||
$this->logQuery($sql);
|
$this->logQuery($sql);
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->error) {
|
if ($this->error) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue