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

@@ -29,7 +29,7 @@ sub load_workers {
$plugin =~ s/^\+//;
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;
}