mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-30 16:19:56 +08:00
Logging of implementation mistake warnings
This commit is contained in:
parent
a8450f51b8
commit
5061f6d9ec
@ -65,6 +65,11 @@ public class ExtensionServiceImplementation implements ExtensionService {
|
||||
@Override
|
||||
public void register(DataExtension extension) {
|
||||
DataProviderExtractor extractor = new DataProviderExtractor(extension);
|
||||
|
||||
for (String warning : extractor.getWarnings()) {
|
||||
logger.warn("DataExtension API implementation mistake for " + extractor.getPluginName() + ": " + warning);
|
||||
}
|
||||
|
||||
ProviderValueGatherer gatherer = new ProviderValueGatherer(extension, extractor, dbSystem, serverInfo, logger);
|
||||
gatherer.storeExtensionInformation();
|
||||
extensionGatherers.put(extractor.getPluginName(), gatherer);
|
||||
|
@ -141,6 +141,10 @@ public class DataProviderExtractor {
|
||||
}
|
||||
}
|
||||
|
||||
public Collection<String> getWarnings() {
|
||||
return extensionExtractor.getWarnings();
|
||||
}
|
||||
|
||||
/**
|
||||
* Functional interface for defining a method that places required DataProvider to DataProviders.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user