diff --git a/modules/transport-netty4/src/main/java/org/elasticsearch/transport/netty4/Netty4Transport.java b/modules/transport-netty4/src/main/java/org/elasticsearch/transport/netty4/Netty4Transport.java index 9cc75a08ee2..f85330ef759 100644 --- a/modules/transport-netty4/src/main/java/org/elasticsearch/transport/netty4/Netty4Transport.java +++ b/modules/transport-netty4/src/main/java/org/elasticsearch/transport/netty4/Netty4Transport.java @@ -321,6 +321,7 @@ public class Netty4Transport extends TcpTransport { listener.onResponse(channel); } else { final Throwable cause = f.cause(); + logger.error("write and flush on the network layer failed", cause); Netty4Utils.maybeDie(cause); assert cause instanceof Exception; listener.onFailure((Exception) cause);