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
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -310,7 +310,7 @@ class Lettering
|
|||
catch (Exception $exc)
|
||||
{
|
||||
echo $exc->getMessage();
|
||||
error_log($exc->getTraceAsString());
|
||||
record_log($exc);
|
||||
$this->db->rollback();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue