add better logging of plugins
This commit is contained in:
@@ -34,7 +34,7 @@ sub _load_web_plugins {
|
|||||||
if $plugin !~ m/^\+/;
|
if $plugin !~ m/^\+/;
|
||||||
$plugin =~ s/^\+//;
|
$plugin =~ s/^\+//;
|
||||||
|
|
||||||
$ENV{PLUGIN_LOAD_DEBUG} && debug "loading web plugin $plugin";
|
$ENV{ND2_LOG_PLUGINS} && debug "loading web plugin $plugin";
|
||||||
Module::Load::load $plugin;
|
Module::Load::load $plugin;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ sub load_workers {
|
|||||||
$plugin =~ s/^\+//;
|
$plugin =~ s/^\+//;
|
||||||
|
|
||||||
next unless $plugin =~ m/::Plugin::${action}(?:::|$)/i;
|
next unless $plugin =~ m/::Plugin::${action}(?:::|$)/i;
|
||||||
$ENV{PLUGIN_LOAD_DEBUG} && debug "loading worker plugin $plugin";
|
$ENV{ND2_LOG_PLUGINS} && debug "loading worker plugin $plugin";
|
||||||
Module::Load::load $plugin;
|
Module::Load::load $plugin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,9 @@ register 'register_worker' => sub {
|
|||||||
my $job = shift or die 'missing job param';
|
my $job = shift or die 'missing job param';
|
||||||
# use DDP; p $workerconf;
|
# 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
|
# update job's record of namespace and priority
|
||||||
# check to see if this namespace has already passed at higher priority
|
# check to see if this namespace has already passed at higher priority
|
||||||
return if $job->namespace_passed($workerconf);
|
return if $job->namespace_passed($workerconf);
|
||||||
|
|||||||
Reference in New Issue
Block a user