Skip to content

Commit 4229b76

Browse files
committed
grpc-js-xds: Add Node message logging
1 parent 7b65675 commit 4229b76

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/grpc-js-xds/src/xds-client.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,13 @@ export class XdsClient {
371371
...nodeV3,
372372
client_features: ['envoy.lrs.supports_send_all_clusters'],
373373
};
374+
if (this.apiVersion === XdsApiVersion.V2) {
375+
trace('ADS Node: ' + JSON.stringify(this.adsNodeV2, undefined, 2));
376+
trace('LRS Node: ' + JSON.stringify(this.lrsNodeV2, undefined, 2));
377+
} else {
378+
trace('ADS Node: ' + JSON.stringify(this.adsNodeV3, undefined, 2));
379+
trace('LRS Node: ' + JSON.stringify(this.lrsNodeV3, undefined, 2));
380+
}
374381
const credentialsConfigs = bootstrapInfo.xdsServers[0].channelCreds;
375382
let channelCreds: ChannelCredentials | null = null;
376383
for (const config of credentialsConfigs) {

0 commit comments

Comments
 (0)