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

@ -229,7 +229,7 @@ class Action_Document_Type_MTable extends Manage_Table_SQL
$cn->rollback();
echo $exc->getMessage();
error_log($exc->getTraceAsString());
record_log($exc);
}
}

View file

@ -91,7 +91,7 @@ class Document_Export
$zip=new Zip_Extended();
$res=$zip->open("{$this->store_pdf}/result.zip",ZipArchive::CREATE);
if ($res !== true) {
error_log("ERR-DE89 cannot create zip file");
record_log("ERR-DE89 cannot create zip file");
record_log($this);
throw new Exception ("ERR-DE89 cannot recreate zip");
}
@ -99,7 +99,7 @@ class Document_Export
// addGmpn
$res=$zip->add_file_pattern($this->store_pdf,"/.*pdf/");
if ($res == 0) {
error_log("ERR-DE96 aucun fichier trouvé");
record_log("ERR-DE96 aucun fichier trouvé");
record_log($this);
throw new Exception ( "ERR-DE96 cannot recreate zip");
}

View file

@ -310,7 +310,7 @@ class Lettering
catch (Exception $exc)
{
echo $exc->getMessage();
error_log($exc->getTraceAsString());
record_log($exc);
$this->db->rollback();
return;
}