etcd-agent: set up directory for etcd logs

This commit is contained in:
Gyu-Ho Lee
2016-06-20 11:32:14 -07:00
parent fb1f1ce1fd
commit 50f2f984e4
2 changed files with 31 additions and 19 deletions

View File

@ -26,11 +26,11 @@ var plog = capnslog.NewPackageLogger("github.com/coreos/etcd", "etcd-agent")
func main() {
etcdPath := flag.String("etcd-path", filepath.Join(os.Getenv("GOPATH"), "bin/etcd"), "the path to etcd binary")
etcdLogPath := flag.String("etcd-log-path", "etcd.log", "the path to etcd log")
etcdLogDir := flag.String("etcd-log-dir", "etcd-log", "directory to store etcd logs")
port := flag.String("port", ":9027", "port to serve agent server")
flag.Parse()
a, err := newAgent(*etcdPath, *etcdLogPath)
a, err := newAgent(*etcdPath, *etcdLogDir)
if err != nil {
plog.Fatal(err)
}