Skip to content

Commit

Permalink
Fix: LOG_ERR and not LOG_ERROR
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Nov 1, 2011
1 parent c3d8341 commit 72ae4e1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion htdocs/admin/tools/listevents.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
else
{
$error++;
dol_syslog($securityevent->error, LOG_ERROR);
dol_syslog($securityevent->error, LOG_ERR);
$db->rolback();
}
}
Expand Down
2 changes: 1 addition & 1 deletion htdocs/compta/prelevement/class/bon-prelevement.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@ function Create($banque=0, $guichet=0, $mode='real')
else
{
$this->db->rollback();
dol_syslog("Error",LOG_ERROR);
dol_syslog("Error",LOG_ERR);
}

return sizeof($factures_prev);
Expand Down
8 changes: 4 additions & 4 deletions htdocs/core/class/interfaces.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function run_triggers($action,$object,$user,$langs,$conf)
// 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
Expand All @@ -71,7 +71,7 @@ function run_triggers($action,$object,$user,$langs,$conf)
{
$dir=dol_buildpath($reldir,0);
//print "xx".$dir;exit;

// Check if directory exists
if (!is_dir($dir)) continue;

Expand Down Expand Up @@ -154,7 +154,7 @@ function run_triggers($action,$object,$user,$langs,$conf)
}
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);
}
}
}
Expand Down Expand Up @@ -194,7 +194,7 @@ function getTriggersList($workflow=0)
{
$dir=dol_buildpath($reldir,0);
//print "xx".$dir;exit;

// Check if directory exists
if (!is_dir($dir)) continue;

Expand Down
4 changes: 2 additions & 2 deletions htdocs/lib/CMailFile.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ function sendfile()
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
{
Expand Down Expand Up @@ -361,7 +361,7 @@ function sendfile()
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
{
Expand Down

0 comments on commit 72ae4e1

Please sign in to comment.