YARN-4541. Change log message in LocalizedResource#handle() to DEBUG (rchiang via rkanter)

(cherry picked from commit 0d9194df00)
This commit is contained in:
Robert Kanter 2016-04-13 17:45:18 -07:00
parent d9d12b9e72
commit e79a47670b
1 changed files with 5 additions and 3 deletions

View File

@ -200,9 +200,11 @@ public class LocalizedResource implements EventHandler<ResourceEvent> {
LOG.warn("Can't handle this event at current state", e);
}
if (oldState != newState) {
LOG.info("Resource " + resourcePath + (localPath != null ?
"(->" + localPath + ")": "") + " transitioned from " + oldState
+ " to " + newState);
if (LOG.isDebugEnabled()) {
LOG.debug("Resource " + resourcePath + (localPath != null ?
"(->" + localPath + ")": "") + " transitioned from " + oldState
+ " to " + newState);
}
}
} finally {
this.writeLock.unlock();