YARN-9156. Improve debug message in device plugin method compatibility check of ResourcePluginManager. Contributed by Zhankun Tang.

This commit is contained in:
Weiwei Yang 2019-02-22 11:27:17 +08:00
parent 28d0bf9f67
commit 632d5e8a98

View File

@ -230,8 +230,7 @@ public void checkInterfaceCompatibility(Class<?> expectedClass,
for (Method m : actualClass.getDeclaredMethods()) { for (Method m : actualClass.getDeclaredMethods()) {
if (m.getName().equals(method.getName())) { if (m.getName().equals(method.getName())) {
LOG.debug("Method {} found in class {}", LOG.debug("Method {} found in class {}",
actualClass.getSimpleName(), m.getName(), actualClass.getSimpleName());
m.getName());
found = true; found = true;
break; break;
} }