Use proper logging placeholder for Netty logging

This commit is contained in:
Yannick Welsch 2017-10-06 10:01:13 +02:00
parent ec6ea9b403
commit c1666f4a22

View File

@ -323,7 +323,7 @@ public class Netty4Transport extends TcpTransport<Channel> {
final Throwable cause = f.cause();
Netty4Utils.maybeDie(cause);
logger.warn((Supplier<?>) () ->
new ParameterizedMessage("write and flush on the network layer failed (channel: [])", channel), cause);
new ParameterizedMessage("write and flush on the network layer failed (channel: {})", channel), cause);
assert cause instanceof Exception;
listener.onFailure((Exception) cause);
}