Skip to content

Commit

Permalink
netty: use varargs logger in ProtocolNegotiators
Browse files Browse the repository at this point in the history
  • Loading branch information
carl-mastrangelo authored Jun 27, 2019
1 parent 023b9a3 commit 9aa3981
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netty/src/main/java/io/grpc/netty/ProtocolNegotiators.java
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ protected ProtocolNegotiationHandler(ChannelHandler next) {

@Override
public final void handlerAdded(ChannelHandlerContext ctx) throws Exception {
negotiationLogger(ctx).log(ChannelLogLevel.DEBUG, negotiatorName + " started");
negotiationLogger(ctx).log(ChannelLogLevel.DEBUG, "{0} started", negotiatorName);
handlerAdded0(ctx);
}

Expand Down Expand Up @@ -945,7 +945,7 @@ protected final void replaceProtocolNegotiationEvent(ProtocolNegotiationEvent pn

protected final void fireProtocolNegotiationEvent(ChannelHandlerContext ctx) {
checkState(pne != null, "previous protocol negotiation event hasn't triggered");
negotiationLogger(ctx).log(ChannelLogLevel.INFO, negotiatorName + " completed");
negotiationLogger(ctx).log(ChannelLogLevel.INFO, "{0} completed", negotiatorName);
ctx.pipeline().replace(ctx.name(), /* newName= */ null, next);
ctx.fireUserEventTriggered(pne);
}
Expand Down

0 comments on commit 9aa3981

Please sign in to comment.