mirror of https://github.com/grpc/grpc-node.git
grpc-js-xds: Log loaded bootstrap info in xDS client
This commit is contained in:
parent
32fc8243d4
commit
de5eb821d1
|
@ -340,6 +340,7 @@ export class XdsClient {
|
|||
if (this.hasShutdown) {
|
||||
return;
|
||||
}
|
||||
trace('Loaded bootstrap info: ' + JSON.stringify(bootstrapInfo, undefined, 2));
|
||||
if (bootstrapInfo.xdsServers[0].serverFeatures.indexOf('xds_v3') >= 0) {
|
||||
this.apiVersion = XdsApiVersion.V3;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue