瀏覽代碼

etcdserver: fixup mismatch error line

Both wcid and gcid are strings, don't try to print it out in hex.
Brandon Philips 11 年之前
父節點
當前提交
0d0bc3a57e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      etcdserver/etcdhttp/http.go

+ 1 - 1
etcdserver/etcdhttp/http.go

@@ -227,7 +227,7 @@ func (h serverHandler) serveRaft(w http.ResponseWriter, r *http.Request) {
 
 	gcid := r.Header.Get("X-Etcd-Cluster-ID")
 	if gcid != wcid {
-		log.Printf("etcdhttp: request ignored: clusterID mismatch got %s want %x", gcid, wcid)
+		log.Printf("etcdhttp: request ignored due to cluster ID mismatch got %s want %s", gcid, wcid)
 		http.Error(w, "clusterID mismatch", http.StatusPreconditionFailed)
 		return
 	}