entries = null;
}
- protected void logExtensions(Set<String> extensions) {
- if (extensions.isEmpty()) {
- log.debug("No extensions found");
- } else {
- log.debug("Found possible {} extensions:", extensions.size());
- for (String extension : extensions) {
- log.debug(" " + extension);
+ protected void debugExtensions(Set<String> extensions) {
+ if (log.isDebugEnabled()) {
+ if (extensions.isEmpty()) {
+ log.debug("No extensions found");
+ } else {
+ log.debug("Found possible {} extensions:", extensions.size());
+ for (String extension : extensions) {
+ log.debug(" " + extension);
+ }
}
}
}
LegacyExtensionStorage.read(reader, bucket);
}
- logExtensions(bucket);
+ debugExtensions(bucket);
result.put(null, bucket);
} catch (IOException e) {
log.debug("Cannot find '{}'", getExtensionsResource());
}
- logExtensions(bucket);
+ debugExtensions(bucket);
result.put(pluginId, bucket);
} catch (IOException e) {
bucket.addAll(readExtensions(extensionPath));
}
- logExtensions(bucket);
+ debugExtensions(bucket);
result.put(null, bucket);
} catch (IOException | URISyntaxException e) {
log.debug("Cannot find '{}'", getExtensionsResource());
}
- logExtensions(bucket);
+ debugExtensions(bucket);
result.put(pluginId, bucket);
} catch (IOException | URISyntaxException e) {