Bläddra i källkod

feat(etcd): print out log line of where the configuration is

It is a bit confusing that your flags are ignored if there is an
existing info file. Inform the user.
Brandon Philips 12 år sedan
förälder
incheckning
99d69cf842
1 ändrade filer med 3 tillägg och 0 borttagningar
  1. 3 0
      etcd.go

+ 3 - 0
etcd.go

@@ -528,6 +528,9 @@ func getInfo(path string) *Info {
 				fatalf("Unable to parse info: %v", err)
 				fatalf("Unable to parse info: %v", err)
 			}
 			}
 		}
 		}
+
+		fmt.Printf("Found node configuration in '%s". Ignoring flags.\n", infoPath)
+
 		file.Close()
 		file.Close()
 		return info
 		return info
 	} else {
 	} else {