From ad5e26f211275876f5ee1aa6e01727bbd3ace1f3 Mon Sep 17 00:00:00 2001 From: rever-tecnologia Date: Thu, 18 Dec 2025 10:06:14 -0300 Subject: [PATCH] chore: remove debug logs do heartbeat --- convex/machines.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/convex/machines.ts b/convex/machines.ts index 3ceed57..8a688a6 100644 --- a/convex/machines.ts +++ b/convex/machines.ts @@ -1025,20 +1025,6 @@ export const heartbeat = mutation({ const incomingInventoryHash = hashJson(sanitizedInventory) const currentInventoryHash = typeof currentMetadata["inventoryHash"] === "string" ? currentMetadata["inventoryHash"] : null - // DEBUG: log para verificar dados extended - if (sanitizedInventory?.["extended"]) { - console.log("[heartbeat] extended keys:", Object.keys(sanitizedInventory["extended"] as object)) - const win = (sanitizedInventory["extended"] as Record)?.["windows"] as Record | undefined - if (win) { - console.log("[heartbeat] windows keys:", Object.keys(win)) - if (win["bootInfo"]) { - console.log("[heartbeat] bootInfo:", JSON.stringify(win["bootInfo"])) - } - } - } else { - console.log("[heartbeat] no extended in sanitizedInventory, source:", args.inventory ? "args.inventory" : incomingMeta?.["inventory"] ? "metadata.inventory" : "none") - } - if (sanitizedInventory && incomingInventoryHash && incomingInventoryHash !== currentInventoryHash) { metadataPatch.inventory = mergeInventory(currentInventory, sanitizedInventory) metadataPatch.inventoryHash = incomingInventoryHash