Improve record_log() : use noalyss/log and apache log

This commit is contained in:
sparkyx 2025-10-24 11:51:25 +02:00
parent 59ab697bb7
commit 169820ae43
22 changed files with 35 additions and 34 deletions

View file

@ -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;
}

View file

@ -56,7 +56,7 @@ try
catch (Exception $exc)
{
echo $exc->getMessage();
error_log($exc->getTraceAsString());
record_log($exc);
throw $exc;
}

View file

@ -44,7 +44,7 @@ try
catch (Exception $exc)
{
echo $exc->getMessage();
error_log($exc->getTraceAsString());
record_log($exc);
throw $exc;
}
$l_type = "JRN";

View file

@ -33,7 +33,7 @@ try
}
catch (Exception $exc)
{
error_log($exc->getTraceAsString());
record_log($exc);
return;
}