improve logger output on startup

This commit is contained in:
Robert Muir 2015-12-04 02:23:34 -05:00
parent f5b6b40a92
commit c78c8bae08
1 changed files with 12 additions and 1 deletions

View File

@ -164,7 +164,18 @@ public class PluginsService extends AbstractComponent {
}
}
logger.info("loaded {}, sites {}", jvmPlugins.keySet(), sitePlugins);
// we don't log jars in lib/ we really shouldnt log modules,
// but for now: just be transparent so we can debug any potential issues
Set<String> moduleNames = new HashSet<>();
Set<String> jvmPluginNames = new HashSet<>();
for (PluginInfo moduleInfo : info.getModuleInfos()) {
moduleNames.add(moduleInfo.getName());
}
for (PluginInfo pluginInfo : info.getPluginInfos()) {
jvmPluginNames.add(pluginInfo.getName());
}
logger.info("modules {}, plugins {}, sites {}", moduleNames, jvmPluginNames, sitePlugins);
Map<Plugin, List<OnModuleReference>> onModuleReferences = new HashMap<>();
for (Plugin plugin : jvmPlugins.values()) {