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

(cherry picked from commit 49eedc7ff0)
This commit is contained in:
Ming Ma 2016-03-07 20:26:19 -08:00
parent d84d54e26c
commit 47f884e06a
1 changed files with 1 additions and 4 deletions

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);
}