umamaheswararao commented on code in PR #3522:
URL: https://github.com/apache/ozone/pull/3522#discussion_r899229798
##########
hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/XceiverClientGrpc.java:
##########
@@ -280,7 +280,10 @@ public ContainerCommandResponseProto sendCommand(
// Re-interrupt the thread while catching InterruptedException
Thread.currentThread().interrupt();
} catch (ExecutionException e) {
- LOG.error("Failed to execute command {}", processForDebug(request), e);
+ LOG.error("Failed to execute command {}." +
+ "Exception Class: {}, Exception Message: {}",
+ request.getCmdType(), e.getClass().getName(), e.getMessage());
Review Comment:
How about "if isDebugEnabled, we can log debug one, otherwise error?"
in that case, debug logging also should have some details.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]