Fix: LOG_ERR and not LOG_ERROR
This commit is contained in:
parent
c3d8341034
commit
72ae4e1f5b
@ -93,7 +93,7 @@ if ($_REQUEST['action'] == 'confirm_purge' && $_REQUEST['confirm'] == 'yes' && $
|
||||
else
|
||||
{
|
||||
$error++;
|
||||
dol_syslog($securityevent->error, LOG_ERROR);
|
||||
dol_syslog($securityevent->error, LOG_ERR);
|
||||
$db->rolback();
|
||||
}
|
||||
}
|
||||
|
||||
@ -1029,7 +1029,7 @@ class BonPrelevement extends CommonObject
|
||||
else
|
||||
{
|
||||
$this->db->rollback();
|
||||
dol_syslog("Error",LOG_ERROR);
|
||||
dol_syslog("Error",LOG_ERR);
|
||||
}
|
||||
|
||||
return sizeof($factures_prev);
|
||||
|
||||
@ -59,7 +59,7 @@ class Interfaces
|
||||
// Check parameters
|
||||
if (! is_object($object) || ! is_object($conf)) // Error
|
||||
{
|
||||
dol_syslog('interface::run_triggers was called with wrong parameters action='.$action.' object='.is_object($object).' user='.is_object($user).' langs='.is_object($langs).' conf='.is_object($conf), LOG_ERROR);
|
||||
dol_syslog('interface::run_triggers was called with wrong parameters action='.$action.' object='.is_object($object).' user='.is_object($user).' langs='.is_object($langs).' conf='.is_object($conf), LOG_ERR);
|
||||
return -1;
|
||||
}
|
||||
if (! is_object($user) || ! is_object($langs)) // Warning
|
||||
@ -71,7 +71,7 @@ class Interfaces
|
||||
{
|
||||
$dir=dol_buildpath($reldir,0);
|
||||
//print "xx".$dir;exit;
|
||||
|
||||
|
||||
// Check if directory exists
|
||||
if (!is_dir($dir)) continue;
|
||||
|
||||
@ -154,7 +154,7 @@ class Interfaces
|
||||
}
|
||||
else
|
||||
{
|
||||
dol_syslog("Interfaces::run_triggers action=".$action." Failed to instantiate trigger for file '".$file."'",LOG_ERROR);
|
||||
dol_syslog("Interfaces::run_triggers action=".$action." Failed to instantiate trigger for file '".$file."'",LOG_ERR);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -194,7 +194,7 @@ class Interfaces
|
||||
{
|
||||
$dir=dol_buildpath($reldir,0);
|
||||
//print "xx".$dir;exit;
|
||||
|
||||
|
||||
// Check if directory exists
|
||||
if (!is_dir($dir)) continue;
|
||||
|
||||
|
||||
@ -332,7 +332,7 @@ class CMailFile
|
||||
if (! $dest)
|
||||
{
|
||||
$this->error="Failed to send mail with php mail to HOST=".ini_get('SMTP').", PORT=".ini_get('smtp_port')."<br>Recipient address '$dest' invalid";
|
||||
dol_syslog("CMailFile::sendfile: mail end error=".$this->error, LOG_ERROR);
|
||||
dol_syslog("CMailFile::sendfile: mail end error=".$this->error, LOG_ERR);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -361,7 +361,7 @@ class CMailFile
|
||||
if (! $res)
|
||||
{
|
||||
$this->error="Failed to send mail with php mail to HOST=".ini_get('SMTP').", PORT=".ini_get('smtp_port')."<br>Check your server logs and your firewalls setup";
|
||||
dol_syslog("CMailFile::sendfile: mail end error=".$this->error, LOG_ERROR);
|
||||
dol_syslog("CMailFile::sendfile: mail end error=".$this->error, LOG_ERR);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user