Log xDS node ID with verbosity INFO (#31797)

* Log xDS node ID with verbosity INFO

* Log xDS node ID with verbosity INFO

* Log xDS node ID with verbosity INFO

* Log xDS node ID with verbosity INFO

* Log xDS node ID with verbosity INFO

* Log xDS node ID with verbosity INFO
pull/31821/head
Mohan Li 2 years ago committed by GitHub
parent 7f054ffab0
commit 3382270efc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/core/ext/xds/xds_client.cc

@ -1477,6 +1477,10 @@ XdsClient::XdsClient(
gpr_log(GPR_INFO, "[xds_client %p] creating xds client", this); gpr_log(GPR_INFO, "[xds_client %p] creating xds client", this);
} }
GPR_ASSERT(bootstrap_ != nullptr); GPR_ASSERT(bootstrap_ != nullptr);
if (bootstrap_->node() != nullptr) {
gpr_log(GPR_INFO, "[xds_client %p] xDS node ID: %s", this,
bootstrap_->node()->id().c_str());
}
} }
XdsClient::~XdsClient() { XdsClient::~XdsClient() {

Loading…
Cancel
Save