mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Fix PUT /config response and log errors.
This commit is contained in:
parent
fe4dee03ab
commit
3cd83c61c4
@ -223,6 +223,8 @@ func (ps *PeerServer) setClusterConfigHttpHandler(w http.ResponseWriter, req *ht
|
||||
|
||||
log.Debugf("[recv] Update Cluster Config Request")
|
||||
ps.server.Dispatch(c, w, req)
|
||||
|
||||
json.NewEncoder(w).Encode(&ps.clusterConfig)
|
||||
}
|
||||
|
||||
// Response to the name request
|
||||
|
@ -273,7 +273,7 @@ func (r *Registry) urls(key, leaderName, selfName string, url func(key, name str
|
||||
}
|
||||
}
|
||||
|
||||
log.Infof("URLs: %s / %s (%s)", key, leaderName, selfName, strings.Join(urls, ","))
|
||||
log.Infof("URLs: %s: %s / %s (%s)", key, leaderName, selfName, strings.Join(urls, ","))
|
||||
|
||||
return urls
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user