Update etcd.go (#1334)

add leaseId to the trace log
This commit is contained in:
chengguoqiang 2020-03-12 18:09:38 +08:00 committed by GitHub
parent be9c6141f5
commit eef4825be4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -252,7 +252,7 @@ func (e *etcdRegistry) registerNode(s *registry.Service, node *registry.Node, op
}
if logger.V(logger.TraceLevel, logger.DefaultLogger) {
logger.Tracef("Registering %s id %s with lease %v and ttl %v", service.Name, node.Id, lgr, options.TTL)
logger.Tracef("Registering %s id %s with lease %v and leaseID %v and ttl %v", service.Name, node.Id, lgr, lgr.ID, options.TTL)
}
// create an entry for the node
if lgr != nil {