no need to debug log if there are no hooks in phase
This commit is contained in:
@@ -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) }) {
|
||||
|
||||
Reference in New Issue
Block a user