From 98463c8cad74c0498b46f0b68795079b072cd003 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Sun, 1 Oct 2017 10:49:12 +0100 Subject: [PATCH] no need to debug log if there are no hooks in phase --- lib/App/Netdisco/Worker/Runner.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/App/Netdisco/Worker/Runner.pm b/lib/App/Netdisco/Worker/Runner.pm index 33f38758..42d63d66 100644 --- a/lib/App/Netdisco/Worker/Runner.pm +++ b/lib/App/Netdisco/Worker/Runner.pm @@ -75,6 +75,7 @@ sub run_workers { my $store = Dancer::Factory::Hook->instance(); (my $phase = $hook) =~ s/^nd2_core_//; + return unless scalar @{ $store->get_hooks_for($hook) }; debug "running workers for hook: $hook"; foreach my $worker (@{ $store->get_hooks_for($hook) }) {