Skip to content

Commit

Permalink
Remove kernel logging for non-debug case
Browse files Browse the repository at this point in the history
  • Loading branch information
cherylking committed Dec 11, 2023
1 parent b0b0bf4 commit 90ef81a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ public void installFeatures(boolean isAcceptLicense, List<String> featuresList)
}

if(featuresToInstall.isEmpty()) {
debug("featuresToInstall is empty");
debug("featuresToInstall is empty");
return;
}

Expand All @@ -724,20 +724,20 @@ public void installFeatures(boolean isAcceptLicense, List<String> featuresList)
disableCacheInURLClassLoader();
try {
String bundle = getOverrideBundleDescriptor(OPEN_LIBERTY_GROUP_ID, REPOSITORY_RESOLVER_ARTIFACT_ID);
mapBasedInstallKernel = createMapBasedInstallKernelInstance(bundle, installDirectory);
mapBasedInstallKernel = createMapBasedInstallKernelInstance(bundle, installDirectory);


Collection<?> resolvedFeatures = resolveFeatures(featuresToInstall, jsonRepos, acceptLicenseMapValue, pluginListedEsas);
if(resolvedFeatures == null || resolvedFeatures.isEmpty()) {
return;
}
Collection<?> resolvedFeatures = resolveFeatures(featuresToInstall, jsonRepos, acceptLicenseMapValue, pluginListedEsas);
if(resolvedFeatures == null || resolvedFeatures.isEmpty()) {
return;
}

Map<File, String> artifactsToExt = downloadEsas(resolvedFeatures, featureToExtMap);
Set<File> artifacts = artifactsToExt.keySet();


if (verifyOption != null && verifyOption != VerifyOption.skip) {
verifyFeatures(artifacts, installJarURL);
verifyFeatures(artifacts, installJarURL);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ private Map<String, Object> getInstallMapObject()
*/
protected Map<String, Object> createMapBasedInstallKernelInstance(String bundle, File installDirectory)
throws PrivilegedActionException, PluginExecutionException, MalformedURLException {
mapBasedInstallKernel = getInstallMapObject();
mapBasedInstallKernel = getInstallMapObject();

// Init
if (bundle != null) {
Expand All @@ -680,11 +680,11 @@ protected Map<String, Object> createMapBasedInstallKernelInstance(String bundle,
debug("install.kernel.init.error.message: " + mapBasedInstallKernel.get("install.kernel.init.error.message"));
File usrDir = new File(installDirectory, "usr");
mapBasedInstallKernel.put("target.user.directory", usrDir);
if (isDebugEnabled()) {
mapBasedInstallKernel.put("debug", Level.FINEST);
}else {
if (isDebugEnabled()) {
mapBasedInstallKernel.put("debug", Level.FINEST);
} /* else { removed due to "java.lang.ClassNotFoundException: com.ibm.websphere.ras.DataFormatHelper" reported in ci.gradle issue 867
mapBasedInstallKernel.put("debug", Level.INFO);
}
} */
return mapBasedInstallKernel;
}

Expand Down

0 comments on commit 90ef81a

Please sign in to comment.