Debug
This commit is contained in:
parent
fa802e3e55
commit
2599c8fdbf
2 changed files with 6 additions and 2 deletions
|
|
@ -70,7 +70,6 @@ export default function ClientePage() {
|
|||
|
||||
await safeRun("schema do banco", async () => {
|
||||
await fetchLogDatabaseSchema();
|
||||
console.log("Schema do Banco de Dados:", logDatabaseSchema); // ainda funciona igual
|
||||
});
|
||||
|
||||
await safeRun("log do GED", () => fetchLogGed(Number(id)));
|
||||
|
|
@ -85,6 +84,12 @@ export default function ClientePage() {
|
|||
fetchSequentially();
|
||||
}, [id]);
|
||||
|
||||
useEffect(() => {
|
||||
if (logDatabaseSchema) {
|
||||
console.log("Schema do Banco de Dados atualizado:", logDatabaseSchema);
|
||||
}
|
||||
}, [logDatabaseSchema]);
|
||||
|
||||
// Formata data e hora do log do servidor
|
||||
const { formattedDate, formattedTime, isOutdated } = formatLogDateTime(
|
||||
logServer?.data,
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ export const useLogDatabaseSchemaHook = () => {
|
|||
try {
|
||||
const response = await LogDatabaseSchemaService();
|
||||
|
||||
console.log("Resposta do LogDatabaseSchemaService:", response);
|
||||
setLog(response as LogDatabaseSchemaInterface);
|
||||
setResponse(response);
|
||||
} catch (error) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue