etcdserver: better version detection log output

Fix https://github.com/coreos/etcd/issues/3288
This commit is contained in:
Xiang Li 2015-08-14 16:08:30 -07:00
parent a17288558e
commit 0076ab154b

View File

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