diff --git a/index.js b/index.js index 26e4c70..2e73a47 100644 --- a/index.js +++ b/index.js @@ -58,6 +58,7 @@ async function updateClients() { const clientUpdates = existingClients.clients.map(async (client) => { const macAddresses = client.ids.filter(id => isMacAddress(id)); + console.log(`Checking client ${client.name} with macs: ${macAddresses}`) if (macAddresses.length === 0) return const originalClientIps = client.ids.filter(id => isIp(id)); @@ -84,6 +85,7 @@ async function updateClients() { const updatedIds = [...new Set([...ipsForClient])]; + console.log(`Client ${client.name} has IPs: ${updatedIds} and original IPs: ${originalClientIps} with macs: ${macAddresses}`) if (!arraysEqual(originalClientIps, updatedIds)) { client.ids = [...updatedIds, ...new Set([...client.ids.filter(id => !isIp(id))])]; const updateObj = {