diff --git a/library/WsScore/Saisie/v0.2/Service.php b/library/WsScore/Saisie/v0.2/Service.php index 283c6913..847fd061 100644 --- a/library/WsScore/Saisie/v0.2/Service.php +++ b/library/WsScore/Saisie/v0.2/Service.php @@ -109,13 +109,17 @@ class Saisie extends Scores_Ws_Server try { $isInserted = $db->insert('jo.infos_entrep', array_merge(array('siren'=>$siren), $tabUpdate)); } catch(Zend_Db_Exception $e) { - file_put_contents('insert.log', "INSERT = ".$e->getMessage()); + if ($this->logger !== null) { + $this->logger->error($e->getMessage()); + } } } else { try { $isUpdated = $db->update('jo.infos_entrep', $tabUpdate, "siren=$siren"); } catch(Zend_Db_Exception $e) { - file_put_contents('update.log', "INSERT = ".$e->getMessage()); + if ($this->logger !== null) { + $this->logger->error($e->getMessage()); + } } } // Fin mise à jour identité