diff --git a/htdocs/admin/tools/listevents.php b/htdocs/admin/tools/listevents.php
index 4fdfa5d9b63..6a18e5f008d 100644
--- a/htdocs/admin/tools/listevents.php
+++ b/htdocs/admin/tools/listevents.php
@@ -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();
}
}
diff --git a/htdocs/compta/prelevement/class/bon-prelevement.class.php b/htdocs/compta/prelevement/class/bon-prelevement.class.php
index 8c6fa9ae9bf..3195eea76cc 100644
--- a/htdocs/compta/prelevement/class/bon-prelevement.class.php
+++ b/htdocs/compta/prelevement/class/bon-prelevement.class.php
@@ -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);
diff --git a/htdocs/core/class/interfaces.class.php b/htdocs/core/class/interfaces.class.php
index 2ca2f82789e..0546e8ec68f 100644
--- a/htdocs/core/class/interfaces.class.php
+++ b/htdocs/core/class/interfaces.class.php
@@ -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;
diff --git a/htdocs/lib/CMailFile.class.php b/htdocs/lib/CMailFile.class.php
index eedf4ec7d87..f33acee1913 100644
--- a/htdocs/lib/CMailFile.class.php
+++ b/htdocs/lib/CMailFile.class.php
@@ -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')."
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')."
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
{