From e6377b3191f50f9fe2cf261121a8270a4d525645 Mon Sep 17 00:00:00 2001 From: Chetan Arakere Gowdru Date: Mon, 6 Jul 2020 10:43:14 +0530 Subject: [PATCH] Change log level from ERROR to warn. Description: When a connection is termination by Peer, following log is logged at error level causing to get captured in teardown making TC as failure. Exception occurred while processing connection pipeline io.netty.channel.unix.Errors$NativeIoException: readAddress(..) failed: Connection reset by peer Change the log level from ERROR to warn as this exception is expected during connection teardown and not making TC to mark as fail for this. JIRA : OVSDB-496 Signed-off-by: Chetan Arakere Gowdru Change-Id: I82a585d4478f07e29f8b04600b7df95bb98c6d08 Signed-off-by: Chetan Arakere Gowdru --- .../org/opendaylight/ovsdb/lib/jsonrpc/ExceptionHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/impl/src/main/java/org/opendaylight/ovsdb/lib/jsonrpc/ExceptionHandler.java b/library/impl/src/main/java/org/opendaylight/ovsdb/lib/jsonrpc/ExceptionHandler.java index 69709c3c2..d85b23443 100644 --- a/library/impl/src/main/java/org/opendaylight/ovsdb/lib/jsonrpc/ExceptionHandler.java +++ b/library/impl/src/main/java/org/opendaylight/ovsdb/lib/jsonrpc/ExceptionHandler.java @@ -35,7 +35,7 @@ public class ExceptionHandler extends ChannelDuplexHandler { @Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) { if (ctx.channel().isActive()) { - LOG.error("Exception occurred while processing connection pipeline", cause); + LOG.warn("Exception occurred while processing connection pipeline", cause); if ((cause instanceof InvalidEncodingException) || (cause instanceof TooLongFrameException || (cause instanceof DecoderException))) { LOG.info("Disconnecting channel to ovsdb {}", ctx.channel()); -- 2.36.6