HDFS-13791. Amend fix LOG string format.

This commit is contained in:
Chen Liang 2019-07-12 12:58:08 -07:00
parent 3ba7826d41
commit 2a1451aa0e
1 changed files with 6 additions and 6 deletions

View File

@ -184,12 +184,12 @@ public class FSEditLogLoader {
LogAction postLogAction = loadEditsLogHelper.record("post", endTime, LogAction postLogAction = loadEditsLogHelper.record("post", endTime,
numEdits, edits.length(), endTime - startTime); numEdits, edits.length(), endTime - startTime);
if (postLogAction.shouldLog()) { if (postLogAction.shouldLog()) {
FSImage.LOG.info("Loaded {} edits file(s) (the last named {}) of " + FSImage.LOG.info("Loaded " + postLogAction.getCount()
"total size {}, total edits {}, total load time {} ms", + " edits file(s) (the last named " + edits.getName()
postLogAction.getCount(), edits.getName(), + ") of total size " + postLogAction.getStats(1).getSum()
postLogAction.getStats(1).getSum(), + ", total edits " + postLogAction.getStats(0).getSum()
postLogAction.getStats(0).getSum(), + ", total load time " + postLogAction.getStats(2).getSum()
postLogAction.getStats(2).getSum()); + " ms");
} }
return numEdits; return numEdits;
} finally { } finally {