Debug v18

This commit is contained in:
Laurent Destailleur
2023-06-22 22:32:09 +02:00
parent 3664fcf759
commit 0670cf25b9
2 changed files with 6 additions and 6 deletions

View File

@@ -559,7 +559,7 @@ class DoliDBPgsql extends DoliDB
$this->lasterror = $this->error();
$this->lasterrno = $this->errno();
if ($conf->global->SYSLOG_LEVEL < LOG_DEBUG) {
if (getDolGlobalInt('SYSLOG_LEVEL') < LOG_DEBUG) {
dol_syslog(get_class($this)."::query SQL Error query: ".$query, LOG_ERR); // Log of request was not yet done previously
}
dol_syslog(get_class($this)."::query SQL Error message: ".$this->lasterror." (".$this->lasterrno.")", LOG_ERR);