Browse Source

etcdserver: better version detection log output

Fix https://github.com/coreos/etcd/issues/3288
Xiang Li 10 years ago
parent
commit
0076ab154b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      etcdserver/cluster_util.go

+ 2 - 2
etcdserver/cluster_util.go

@@ -152,8 +152,8 @@ func decideClusterVersion(vers map[string]*version.Versions) *semver.Version {
 			return nil
 		}
 		if lv.LessThan(*v) {
-			plog.Warningf("the etcd version %s is not up-to-date", lv.String())
-			plog.Warningf("member %s has a higher version %s", mid, ver)
+			plog.Warningf("the local etcd version %s is not up-to-date", lv.String())
+			plog.Warningf("member %s has a higher version %s", mid, ver.Server)
 		}
 		if cv == nil {
 			cv = v