Skip to content

Commit 7efd39f

Browse files
chore: refactoring the discovery manager
1 parent 69794f0 commit 7efd39f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

splunk_connect_for_snmp/discovery/discovery_manager.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,13 @@ def discover_snmp_devices_details(
9292
result = future.result()
9393
if result:
9494
devices_detail.append(result)
95-
logger.debug(
95+
logger.info(
9696
f"SNMP device found: {result}. Device is from discovery: {discovery_record.discovery_name}"
9797
)
98+
else:
99+
logger.info(
100+
f"SNMP not enabled on the device: {ip}"
101+
)
98102
except Exception as e:
99103
logger.error(
100104
f"Snmp check for device {ip} generated an exception : {e}"
@@ -118,7 +122,7 @@ def do_work(self, discovery_record: DiscoveryRecord) -> list:
118122
host_list = self.get_host_list(
119123
discovery_record.network_address,
120124
)
121-
logger.debug(f"Number of Active hosts: {len(host_list)}")
125+
logger.info(f"Number of Active hosts: {len(host_list)}")
122126
snmp_devices_detail = self.discover_snmp_devices_details(
123127
host_list, discovery_record, max_threads=10
124128
)

0 commit comments

Comments
 (0)