Gravando o log

This commit is contained in:
Kenio 2025-09-08 16:28:51 -03:00
parent 608b82318c
commit 5d1b5ea7a1
2 changed files with 2 additions and 6 deletions

View file

@ -76,11 +76,7 @@ try {
$Log->Delete($clientId);
/** Grava o arquivo de log */
if (!$Log->Save($clientId, $LogValidate->getFile())) {
/** Informo */
throw new InvalidArgumentException('Não foi possível cadastrar o arquivo de log', 0);
}
$Log->Save($clientId, $LogValidate->getFile());
}
} catch (Exception $exception) {

View file

@ -253,7 +253,7 @@ class Log
$this->connection->connect()->rollback();
/** Captura o erro */
array_push($this->errors, 'Error:: ' . $exception->getMessage());
throw new InvalidArgumentException($exception->getMessage());
return false;
}
}