mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-30 21:17:49 +01:00
PluginData related error message clarification
This commit is contained in:
parent
1c4938a3db
commit
016e1dc4bc
@ -125,8 +125,9 @@ public class HookHandler implements SubSystem {
|
|||||||
containers.put(pluginData, container);
|
containers.put(pluginData, container);
|
||||||
}
|
}
|
||||||
} catch (Exception | NoClassDefFoundError | NoSuchFieldError | NoSuchMethodError e) {
|
} catch (Exception | NoClassDefFoundError | NoSuchFieldError | NoSuchMethodError e) {
|
||||||
String sourcePlugin = pluginData.getSourcePlugin();
|
String pluginName = pluginData.getSourcePlugin();
|
||||||
logger.error("PluginData caused exception: " + sourcePlugin);
|
logger.error("PluginData caused exception: " + pluginName +
|
||||||
|
", you can disable the integration under 'Plugins." + pluginName + ".Enabled'");
|
||||||
errorHandler.log(L.WARN, pluginData.getClass(), e);
|
errorHandler.log(L.WARN, pluginData.getClass(), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -140,8 +140,9 @@ public class AnalysisPluginsTabContentCreator {
|
|||||||
List<PluginData> sources = hookHandler.getAdditionalDataSources();
|
List<PluginData> sources = hookHandler.getAdditionalDataSources();
|
||||||
|
|
||||||
sources.parallelStream().forEach(source -> {
|
sources.parallelStream().forEach(source -> {
|
||||||
|
String pluginName = source.getSourcePlugin();
|
||||||
try {
|
try {
|
||||||
timings.start("Source " + source.getSourcePlugin());
|
timings.start("Source " + pluginName);
|
||||||
|
|
||||||
source.setAnalysisData(analysisContainer);
|
source.setAnalysisData(analysisContainer);
|
||||||
AnalysisContainer container = source.getServerData(uuids, new AnalysisContainer());
|
AnalysisContainer container = source.getServerData(uuids, new AnalysisContainer());
|
||||||
@ -150,10 +151,11 @@ public class AnalysisPluginsTabContentCreator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception | NoClassDefFoundError | NoSuchFieldError | NoSuchMethodError e) {
|
} catch (Exception | NoClassDefFoundError | NoSuchFieldError | NoSuchMethodError e) {
|
||||||
logger.error("A PluginData-source caused an exception: " + source.getSourcePlugin());
|
logger.error("A PluginData-source caused an exception: " + pluginName +
|
||||||
|
", you can disable the integration under 'Plugins." + pluginName + ".Enabled'");
|
||||||
errorHandler.log(L.WARN, this.getClass(), e);
|
errorHandler.log(L.WARN, this.getClass(), e);
|
||||||
} finally {
|
} finally {
|
||||||
timings.end(DebugChannels.ANALYSIS, "Source " + source.getSourcePlugin());
|
timings.end(DebugChannels.ANALYSIS, "Source " + pluginName);
|
||||||
source.setAnalysisData(null);
|
source.setAnalysisData(null);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user