Skip to content

Commit

Permalink
xdsclient: log node ID with verbosity INFO (#5860)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanli-ml committed Dec 14, 2022
1 parent 9373e5c commit e53d28f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xds/internal/xdsclient/singleton.go
Expand Up @@ -90,6 +90,11 @@ func newRefCountedWithConfig(config *bootstrap.Config) (XDSClient, error) {
singletonClient.clientImpl = c
singletonClient.refCount++
singletonClientImplCreateHook()
nodeID := "<unknown>"
if node, ok := config.XDSServer.NodeProto.(interface{ GetId() string }); ok {
nodeID = node.GetId()
}
logger.Infof("xDS node ID: %s", nodeID)
return &onceClosingClient{XDSClient: singletonClient}, nil
}

Expand Down

0 comments on commit e53d28f

Please sign in to comment.