From eef4825be4d61518eaf33d9f0d598ffb24b356ad Mon Sep 17 00:00:00 2001 From: chengguoqiang Date: Thu, 12 Mar 2020 18:09:38 +0800 Subject: [PATCH] Update etcd.go (#1334) add leaseId to the trace log --- registry/etcd/etcd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/etcd/etcd.go b/registry/etcd/etcd.go index 630fdbaf..8b7a65e1 100644 --- a/registry/etcd/etcd.go +++ b/registry/etcd/etcd.go @@ -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 {