Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Commit

Permalink
Log xDS node ID with verbosity INFO (grpc#31797)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
mohanli-ml authored Dec 6, 2022
1 parent 7f054ff commit 3382270
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/ext/xds/xds_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1477,6 +1477,10 @@ XdsClient::XdsClient(
gpr_log(GPR_INFO, "[xds_client %p] creating xds client", this);
}
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() {
Expand Down

0 comments on commit 3382270

Please sign in to comment.