Add Netty channel information on write and flush failure
This commit is contained in:
parent
3176ba418e
commit
ec6ea9b403
|
@ -322,7 +322,8 @@ public class Netty4Transport extends TcpTransport<Channel> {
|
||||||
} else {
|
} else {
|
||||||
final Throwable cause = f.cause();
|
final Throwable cause = f.cause();
|
||||||
Netty4Utils.maybeDie(cause);
|
Netty4Utils.maybeDie(cause);
|
||||||
logger.warn("write and flush on the network layer failed", cause);
|
logger.warn((Supplier<?>) () ->
|
||||||
|
new ParameterizedMessage("write and flush on the network layer failed (channel: [])", channel), cause);
|
||||||
assert cause instanceof Exception;
|
assert cause instanceof Exception;
|
||||||
listener.onFailure((Exception) cause);
|
listener.onFailure((Exception) cause);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue