Skip to content

Commit 040035b

Browse files
committed
Include failed method name in the tls verification failed log message.
1 parent 916d0d5 commit 040035b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

netty/src/main/java/io/grpc/netty/NettyClientTransport.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,9 @@ public ClientStream newStream(
204204
if (enablePerRpcAuthorityCheck) {
205205
return new FailingClientStream(verificationStatus, tracers);
206206
}
207-
logger.warning("Authority verification for the rpc failed (This will be an error in the "
208-
+ "future) with error status: " + verificationStatus.getDescription());
207+
logger.warning(String.format("Authority verification for the rpc %s failed (this will be an" +
208+
" error in the future) with error status: %s", method.getFullMethodName(),
209+
verificationStatus.getDescription()));
209210
}
210211
}
211212
StatsTraceContext statsTraceCtx =

0 commit comments

Comments
 (0)