Gravando o log
This commit is contained in:
parent
608b82318c
commit
5d1b5ea7a1
2 changed files with 2 additions and 6 deletions
6
vendor/action/log/log_save.php
vendored
6
vendor/action/log/log_save.php
vendored
|
|
@ -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) {
|
||||
|
|
|
|||
2
vendor/model/Log.class.php
vendored
2
vendor/model/Log.class.php
vendored
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue