HDDS-6899. EC: remove warnings and errors from console during online reconstruction of data. (#3632)
diff --git a/hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/XceiverClientGrpc.java b/hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/XceiverClientGrpc.java
index 457d674..5415ecb 100644
--- a/hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/XceiverClientGrpc.java
+++ b/hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/XceiverClientGrpc.java
@@ -440,8 +440,14 @@
return reply;
} else {
Objects.requireNonNull(ioException);
- LOG.error("Failed to execute command {} on the pipeline {}.",
- processForDebug(request), pipeline);
+ String message = "Failed to execute command {}";
+ if (LOG.isDebugEnabled()) {
+ LOG.debug(message + " on the pipeline {}.",
+ processForDebug(request), pipeline);
+ } else {
+ LOG.error(message + " on the pipeline {}.",
+ request.getCmdType(), pipeline);
+ }
throw ioException;
}
}