File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -340,6 +340,7 @@ export class XdsClient {
340
340
if ( this . hasShutdown ) {
341
341
return ;
342
342
}
343
+ trace ( 'Loaded bootstrap info: ' + JSON . stringify ( bootstrapInfo , undefined , 2 ) ) ;
343
344
if ( bootstrapInfo . xdsServers [ 0 ] . serverFeatures . indexOf ( 'xds_v3' ) >= 0 ) {
344
345
this . apiVersion = XdsApiVersion . V3 ;
345
346
} else {
@@ -370,6 +371,13 @@ export class XdsClient {
370
371
...nodeV3 ,
371
372
client_features : [ 'envoy.lrs.supports_send_all_clusters' ] ,
372
373
} ;
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
+ }
373
381
const credentialsConfigs = bootstrapInfo . xdsServers [ 0 ] . channelCreds ;
374
382
let channelCreds : ChannelCredentials | null = null ;
375
383
for ( const config of credentialsConfigs ) {
You can’t perform that action at this time.
0 commit comments