Logger
This commit is contained in:
parent
63cac55c42
commit
ce921c949d
@ -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é
|
||||
|
Loading…
Reference in New Issue
Block a user