Binder transport: Log endpoint binder object before passing it to client (#29555)

This will help us identify connection establishment related issue.
pull/30734/head
Ming-Chuan 2 years ago committed by GitHub
parent 4a27b432b6
commit e636213f88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/core/ext/transport/binder/java/io/grpc/binder/cpp/GrpcCppServerBuilder.java

@ -27,7 +27,9 @@ public class GrpcCppServerBuilder {
String path = uri.substring(scheme.length());
// TODO(mingcl): Consider if we would like to make sure the path only contain valid
// characters here
return GetEndpointBinderInternal(path);
IBinder ibinder = GetEndpointBinderInternal(path);
Log.e(logTag, "Returning binder=" + ibinder + " for URI=" + uri);
return ibinder;
} else {
Log.e(logTag, "URI " + uri + " does not start with 'binder:'");
return null;

Loading…
Cancel
Save