|
@@ -262,8 +262,8 @@ class BlockReceiver implements Closeable {
|
|
|
|
|
|
// check if there is a disk error
|
|
|
IOException cause = DatanodeUtil.getCauseIfDiskError(ioe);
|
|
|
- DataNode.LOG.warn("IOException in BlockReceiver constructor. Cause is ",
|
|
|
- cause);
|
|
|
+ DataNode.LOG.warn("IOException in BlockReceiver constructor"
|
|
|
+ + (cause == null ? "" : ". Cause is "), cause);
|
|
|
|
|
|
if (cause != null) { // possible disk error
|
|
|
ioe = cause;
|