rohityadavcloud commented on code in PR #9220:
URL: https://github.com/apache/cloudstack/pull/9220#discussion_r1634734191
##########
services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage/resource/HttpUploadServerHandler.java:
##########
@@ -295,7 +295,8 @@ private void writeResponse(Channel channel,
HttpResponseStatus statusCode) {
@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause)
throws Exception {
- logger.warn(responseContent.toString(), cause);
+ logger.warn(String.format("%s. Exception occurred: %s",
responseContent.toString(), cause.getMessage()));
+ logger.debug("Caused due to: ", cause);
Review Comment:
Should this be both warn and debug? Or the debug should add something like:
```suggestion
logger.debug("Exception caught by HTTP upload handler, caused due
to: ", cause);
```
--
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]