From 008bbd2b84c1501d5760142199351ac044ab09f4 Mon Sep 17 00:00:00 2001 From: Yicheng Qin Date: Wed, 4 Mar 2015 16:29:19 -0800 Subject: [PATCH] tools/etcd-agent: log rpc actions --- tools/functional-tester/etcd-agent/rpc.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/functional-tester/etcd-agent/rpc.go b/tools/functional-tester/etcd-agent/rpc.go index 1c42bae85..de4c2c92a 100644 --- a/tools/functional-tester/etcd-agent/rpc.go +++ b/tools/functional-tester/etcd-agent/rpc.go @@ -32,20 +32,22 @@ func (a *Agent) serveRPC() { } func (a *Agent) RPCStart(args []string, pid *int) error { + log.Printf("rpc: start etcd with args %v", args) err := a.start(args...) if err != nil { return err } - log.Print("start", a.cmd.Args) *pid = a.cmd.Process.Pid return nil } func (a *Agent) RPCStop(args struct{}, reply *struct{}) error { + log.Printf("rpc: stop etcd") return a.stop() } func (a *Agent) RPCRestart(args struct{}, pid *int) error { + log.Printf("rpc: restart etcd") err := a.restart() if err != nil { return err @@ -55,6 +57,7 @@ func (a *Agent) RPCRestart(args struct{}, pid *int) error { } func (a *Agent) RPCTerminate(args struct{}, reply *struct{}) error { + log.Printf("rpc: terminate etcd") return a.terminate() }