HADOOP-12789. log classpath of ApplicationClassLoader at INFO level. (Sangjin Lee via mingma)

This commit is contained in:
Ming Ma 2016-03-07 20:26:19 -08:00
parent 352d299cf8
commit 49eedc7ff0

View File

@ -94,10 +94,6 @@ public boolean accept(File dir, String name) {
public ApplicationClassLoader(URL[] urls, ClassLoader parent,
List<String> systemClasses) {
super(urls, parent);
if (LOG.isDebugEnabled()) {
LOG.debug("urls: " + Arrays.toString(urls));
LOG.debug("system classes: " + systemClasses);
}
this.parent = parent;
if (parent == null) {
throw new IllegalArgumentException("No parent classloader!");
@ -106,6 +102,7 @@ public ApplicationClassLoader(URL[] urls, ClassLoader parent,
this.systemClasses = (systemClasses == null || systemClasses.isEmpty()) ?
Arrays.asList(StringUtils.getTrimmedStrings(SYSTEM_CLASSES_DEFAULT)) :
systemClasses;
LOG.info("classpath: " + Arrays.toString(urls));
LOG.info("system classes: " + this.systemClasses);
}