From 9796e175fbf29101154b4f960d69d081b18a9004 Mon Sep 17 00:00:00 2001 From: Kenio de Souza Date: Mon, 8 Sep 2025 16:51:53 -0300 Subject: [PATCH] Gravando o log --- vendor/action/log/log_save.php | 2 +- vendor/model/Log.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/action/log/log_save.php b/vendor/action/log/log_save.php index 338aa14..184a8fe 100644 --- a/vendor/action/log/log_save.php +++ b/vendor/action/log/log_save.php @@ -69,7 +69,7 @@ try { } /** Id do cliente */ - $clientId = $ClientResult->client_id > 0 ? $ClientResult->client_id : $Client->getId(); + echo $clientId = $ClientResult->client_id > 0 ? $ClientResult->client_id : $Client->getId(); /** Grava o arquivo de log */ $Log->Save($clientId, $LogValidate->getFile()); diff --git a/vendor/model/Log.class.php b/vendor/model/Log.class.php index 7c1bf2a..3e2052d 100644 --- a/vendor/model/Log.class.php +++ b/vendor/model/Log.class.php @@ -197,7 +197,7 @@ class Log /** Confirma a transação */ $this->connection->connect()->commit(); return true; - } catch (\Exception $exception) { + } catch (\PDOException $exception) { /** Desfaz a transação */ $this->connection->connect()->rollback();