Improve record_log() : use noalyss/log and apache log
This commit is contained in:
parent
59ab697bb7
commit
169820ae43
22 changed files with 35 additions and 34 deletions
|
|
@ -49,8 +49,8 @@ try {
|
|||
$to_poste = $http->request("to_poste");
|
||||
$p_filter = $http->request("p_filter", "string");
|
||||
} catch (Exception $exc) {
|
||||
error_log("Missing parameters");
|
||||
error_log($exc->getTraceAsString());
|
||||
record_log("Missing parameters");
|
||||
record_log($exc);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ try
|
|||
catch (Exception $exc)
|
||||
{
|
||||
echo $exc->getMessage();
|
||||
error_log($exc->getTraceAsString());
|
||||
record_log($exc);
|
||||
throw $exc;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ try
|
|||
catch (Exception $exc)
|
||||
{
|
||||
echo $exc->getMessage();
|
||||
error_log($exc->getTraceAsString());
|
||||
record_log($exc);
|
||||
throw $exc;
|
||||
}
|
||||
$l_type = "JRN";
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ try
|
|||
}
|
||||
catch (Exception $exc)
|
||||
{
|
||||
error_log($exc->getTraceAsString());
|
||||
record_log($exc);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue