From 34e2b3640a3284a3ebe29f156bc48d6aced0a6d8 Mon Sep 17 00:00:00 2001 From: Manish R Jain <manishrjain@gmail.com> Date: Thu, 14 Apr 2016 15:43:35 +1000 Subject: [PATCH] Don't log fatal on call to ServeTask. Just return error for that query. --- worker/task.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worker/task.go b/worker/task.go index 28ab6cc9..e6e2f7ee 100644 --- a/worker/task.go +++ b/worker/task.go @@ -56,7 +56,8 @@ func ProcessTaskOverNetwork(qu []byte) (result []byte, rerr error) { query.Data = qu reply := new(conn.Reply) if err := pool.Call("Worker.ServeTask", query, reply); err != nil { - glog.WithField("call", "Worker.ServeTask").Fatal(err) + glog.WithField("call", "Worker.ServeTask").Error(err) + return []byte(""), err } glog.WithField("reply_len", len(reply.Data)).WithField("addr", addr). WithField("attr", attr).Info("Got reply from server") -- GitLab