mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
logging: httpupload do not warn with exception trace (#9220)
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> Co-authored-by: Rohit Yadav <rohityadav89@gmail.com>
This commit is contained in:
parent
e2e46e3108
commit
5c749eced2
@ -295,7 +295,8 @@ public class HttpUploadServerHandler extends SimpleChannelInboundHandler<HttpObj
|
||||
|
||||
@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("Exception caught by HTTP upload handler, caused due to: ", cause);
|
||||
responseContent.append("\r\nException occurred: ").append(cause.getMessage());
|
||||
writeResponse(ctx.channel(), HttpResponseStatus.INTERNAL_SERVER_ERROR);
|
||||
ctx.channel().close();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user