Skip to content
Snippets Groups Projects
Commit f7e71d1d authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

FIX LOG_ERROR does not exists. Use LOG_ERR.

parent f0dddae6
No related branches found
No related tags found
No related merge requests found
...@@ -129,7 +129,7 @@ class Interfaces ...@@ -129,7 +129,7 @@ class Interfaces
if (in_array($modName,$modules)) // $modules = list of modName already loaded if (in_array($modName,$modules)) // $modules = list of modName already loaded
{ {
$langs->load("errors"); $langs->load("errors");
dol_syslog(get_class($this)."::run_triggers action=".$action." ".$langs->trans("ErrorDuplicateTrigger", $newdir."/".$file, $fullpathfiles[$modName]), LOG_ERR); dol_syslog(get_class($this)."::run_triggers action=".$action." ".$langs->trans("ErrorDuplicateTrigger", $newdir."/".$file, $fullpathfiles[$modName]), LOG_WARNING);
continue; continue;
} }
...@@ -140,7 +140,7 @@ class Interfaces ...@@ -140,7 +140,7 @@ class Interfaces
} }
catch(Exception $e) catch(Exception $e)
{ {
dol_syslog('ko for '.$modName." ".$e->getMessage()."\n", LOG_ERROR); dol_syslog('ko for '.$modName." ".$e->getMessage()."\n", LOG_ERR);
} }
$modules[$i] = $modName; $modules[$i] = $modName;
......
...@@ -329,7 +329,7 @@ class Export ...@@ -329,7 +329,7 @@ class Export
$szFilterQuery=" ".$NameField."='".$ValueField."'"; $szFilterQuery=" ".$NameField."='".$ValueField."'";
break; break;
default: default:
dol_syslog("Error we try to forge an sql export request with a condition on a field with type '".$InfoFieldList[0]."' (defined into module descriptor) but this type is unknown/not supported. It looks like a bug into module descriptor.", LOG_ERROR); dol_syslog("Error we try to forge an sql export request with a condition on a field with type '".$InfoFieldList[0]."' (defined into module descriptor) but this type is unknown/not supported. It looks like a bug into module descriptor.", LOG_ERR);
} }
return $szFilterQuery; return $szFilterQuery;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment