|
@@ -2244,7 +2244,7 @@ public class DFSAdmin extends FsShell {
|
|
System.err.println(cmd.substring(1) + ": "
|
|
System.err.println(cmd.substring(1) + ": "
|
|
+ e.getLocalizedMessage());
|
|
+ e.getLocalizedMessage());
|
|
}
|
|
}
|
|
- if (LOG.isDebugEnabled()) {
|
|
|
|
|
|
+ if (LOG.isDebugEnabled() && debugException != null) {
|
|
LOG.debug("Exception encountered:", debugException);
|
|
LOG.debug("Exception encountered:", debugException);
|
|
}
|
|
}
|
|
return exitCode;
|
|
return exitCode;
|