add debug

This commit is contained in:
benoitpotier 2017-04-13 15:56:53 +02:00
parent cc9d78c657
commit 3559d3d908

View File

@ -90,6 +90,8 @@ if ($opts->cron) {
$jalStmt->bindValue('file', $fileName);
$jalStmt->execute();
if ($jalStmt->rowCount() == 0) {
echo date('Y-m-d H:i:s')." - ".$fileName.": non trouvé donc inséré\n";
$data = array(
'pdfName' => $fileName,
'idJalEd' => $idJalEd,
@ -112,6 +114,8 @@ if ($opts->cron) {
$exist = $jalStmt->fetch(\PDO::FETCH_OBJ);
// --- Vérification de la taille des fichiers
if ($fileSize != $exist->pdfSize) {
echo date('Y-m-d H:i:s')." - ".$fileName.": DateDeliver reset\n";
// --- Renseigner octde.jalpdfsed
try {
$isInsert = $conn->update('octde.jalpdfsed', array(