mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +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
|
@ -84,7 +84,7 @@ class DboSource extends DataSource {
|
|||
$this->debug = DEBUG > 0;
|
||||
$this->fullDebug = DEBUG > 1;
|
||||
parent::__construct($config);
|
||||
|
||||
|
||||
if ($autoConnect) {
|
||||
return $this->connect();
|
||||
} else {
|
||||
|
@ -265,7 +265,10 @@ class DboSource extends DataSource {
|
|||
$this->took = round((getMicrotime() - $t) * 1000, 0);
|
||||
$this->error = $this->lastError();
|
||||
$this->numRows = $this->lastNumRows($this->_result);
|
||||
$this->logQuery($sql);
|
||||
|
||||
if($this->fullDebug) {
|
||||
$this->logQuery($sql);
|
||||
}
|
||||
|
||||
if ($this->error) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue