HDFS-11891. DU#refresh should print the path of the directory when an exception is caught. Contributed by Chen Liang.

This commit is contained in:
Arpit Agarwal 2017-05-26 16:02:40 -07:00
parent 2cd612ba8e
commit bd6a2172e0
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,8 @@ public class DU extends CachingGetSpaceUsed {
try { try {
duShell.startRefresh(); duShell.startRefresh();
} catch (IOException ioe) { } catch (IOException ioe) {
LOG.warn("Could not get disk usage information", ioe); LOG.warn("Could not get disk usage information for path {}",
getDirPath(), ioe);
} }
} }