mirror of https://github.com/grpc/grpc-go.git
xdsclient: log node ID with verbosity INFO (#5860)
This commit is contained in:
parent
9373e5cb26
commit
e53d28f5eb
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue