Xiang Li 10 лет назад
Родитель
Сommit
1b572ae2dd
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      etcdmain/etcd.go

+ 2 - 2
etcdmain/etcd.go

@@ -315,7 +315,7 @@ func startProxy(cfg *config) error {
 	switch {
 	switch {
 	case err == nil:
 	case err == nil:
 		if cfg.durl != "" {
 		if cfg.durl != "" {
-			plog.Warningf("discovery token ignored since the proxy has already been initialized. Valid cluster file found at ./%s", clusterfile)
+			plog.Warningf("discovery token ignored since the proxy has already been initialized. Valid cluster file found at %q", clusterfile)
 		}
 		}
 		urls := struct{ PeerURLs []string }{}
 		urls := struct{ PeerURLs []string }{}
 		err := json.Unmarshal(b, &urls)
 		err := json.Unmarshal(b, &urls)
@@ -323,7 +323,7 @@ func startProxy(cfg *config) error {
 			return err
 			return err
 		}
 		}
 		peerURLs = urls.PeerURLs
 		peerURLs = urls.PeerURLs
-		plog.Infof("proxy: using peer urls %v from cluster file ./%s", peerURLs, clusterfile)
+		plog.Infof("proxy: using peer urls %v from cluster file %q", peerURLs, clusterfile)
 	case os.IsNotExist(err):
 	case os.IsNotExist(err):
 		if cfg.durl != "" {
 		if cfg.durl != "" {
 			s, err := discovery.GetCluster(cfg.durl, cfg.dproxy)
 			s, err := discovery.GetCluster(cfg.durl, cfg.dproxy)