소스 검색

etcdmain: fix path printing

Xiang Li 10 년 전
부모
커밋
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 {
 	case err == nil:
 		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 }{}
 		err := json.Unmarshal(b, &urls)
@@ -323,7 +323,7 @@ func startProxy(cfg *config) error {
 			return err
 		}
 		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):
 		if cfg.durl != "" {
 			s, err := discovery.GetCluster(cfg.durl, cfg.dproxy)