From 5efcdd77076300feb7de34ad42781adef82a9eee Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Fri, 11 Aug 2023 13:28:55 +0100 Subject: [PATCH] better status reporting from SNMPFastDiscover --- lib/App/Netdisco/Worker/Plugin/Internal/SNMPFastDiscover.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/App/Netdisco/Worker/Plugin/Internal/SNMPFastDiscover.pm b/lib/App/Netdisco/Worker/Plugin/Internal/SNMPFastDiscover.pm index 901b0e0a..bfd58aac 100644 --- a/lib/App/Netdisco/Worker/Plugin/Internal/SNMPFastDiscover.pm +++ b/lib/App/Netdisco/Worker/Plugin/Internal/SNMPFastDiscover.pm @@ -14,9 +14,10 @@ register_worker({ phase => 'check', driver => 'direct' }, sub { and (not blessed $job->device or not $job->device->in_storage)) { config->{'snmp_try_slow_connect'} = false; - debug sprintf '[%s] skipping long SNMP timeouts for initial discover', - $job->device; + return Status->info("-> running with fast SNMP timeouts for initial discover"); } + + return Status->info("-> running with configured SNMP timeouts"); }); true;