From 0d6caa897fe69c021a19f31f7c173bbcd412cbef Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Thu, 5 Feb 2026 09:00:42 -0600 Subject: [PATCH] refactor: remove debug logging from SNMPv3 credential handling Discovery is now working successfully with SNMPv3 after increasing agent timeout to 60s. Removing the temporary debug logging that was added to verify credentials were being properly decrypted and sent to the agent. --- lib/towerops_web/channels/agent_channel.ex | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/towerops_web/channels/agent_channel.ex b/lib/towerops_web/channels/agent_channel.ex index 98772960..7cea1859 100644 --- a/lib/towerops_web/channels/agent_channel.ex +++ b/lib/towerops_web/channels/agent_channel.ex @@ -381,17 +381,6 @@ defmodule ToweropsWeb.AgentChannel do end defp build_v3_snmp_device(device, snmp_config) do - # Log what we're sending to agent (mask passwords) - Logger.info( - "Sending SNMPv3 credentials to agent for #{device.name}: " <> - "username=#{snmp_config.username}, " <> - "security_level=#{snmp_config.security_level}, " <> - "auth_protocol=#{snmp_config.auth_protocol}, " <> - "priv_protocol=#{snmp_config.priv_protocol}, " <> - "auth_password_length=#{if snmp_config.auth_password, do: byte_size(snmp_config.auth_password), else: 0}, " <> - "priv_password_length=#{if snmp_config.priv_password, do: byte_size(snmp_config.priv_password), else: 0}" - ) - %SnmpDevice{ ip: device.ip_address, version: device.snmp_version,