Browse Source

[Implement][Common] Modify the plug-in loading log to print messages

Co-authored-by: caoping <caoping@staff.weibo.com>
pull/3/MERGE
lcdrs 4 years ago committed by GitHub
parent
commit
d04f4b6053
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/plugin/DolphinPluginLoader.java

4
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/plugin/DolphinPluginLoader.java

@ -93,12 +93,12 @@ public class DolphinPluginLoader {
private void loadPlugin(String plugin)
throws Exception {
logger.info("-- Loading Alert plugin {} --", plugin);
logger.info("-- Loading plugin {} --", plugin);
URLClassLoader pluginClassLoader = buildPluginClassLoader(plugin);
try (ThreadContextClassLoader ignored = new ThreadContextClassLoader(pluginClassLoader)) {
loadPlugin(pluginClassLoader);
}
logger.info("-- Finished loading Alert plugin {} --", plugin);
logger.info("-- Finished loading plugin {} --", plugin);
}
private void loadPlugin(URLClassLoader pluginClassLoader) {

Loading…
Cancel
Save