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.
release-0.4
Brandon Philips 2013-08-08 13:09:13 -07:00
parent 5e8f9a57a5
commit 99d69cf842
1 changed files with 3 additions and 0 deletions

View File

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