add better logging of plugins

This commit is contained in:
Oliver Gorwits
2017-11-28 20:50:09 +00:00
parent 38110c2868
commit b47a22e3da
3 changed files with 5 additions and 2 deletions

View File

@@ -32,6 +32,9 @@ register 'register_worker' => sub {
my $job = shift or die 'missing job param';
# use DDP; p $workerconf;
$ENV{ND2_LOG_PLUGINS} && debug sprintf '-> run worker %s/%s/%s',
@$workerconf{qw/phase namespace priority/};
# update job's record of namespace and priority
# check to see if this namespace has already passed at higher priority
return if $job->namespace_passed($workerconf);