Skip to content
Snippets Groups Projects
Commit 34e2b364 authored by Manish R Jain's avatar Manish R Jain
Browse files

Don't log fatal on call to ServeTask. Just return error for that query.

parent bb8ed96e
Branches
No related tags found
No related merge requests found
...@@ -56,7 +56,8 @@ func ProcessTaskOverNetwork(qu []byte) (result []byte, rerr error) { ...@@ -56,7 +56,8 @@ func ProcessTaskOverNetwork(qu []byte) (result []byte, rerr error) {
query.Data = qu query.Data = qu
reply := new(conn.Reply) reply := new(conn.Reply)
if err := pool.Call("Worker.ServeTask", query, reply); err != nil { 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). glog.WithField("reply_len", len(reply.Data)).WithField("addr", addr).
WithField("attr", attr).Info("Got reply from server") WithField("attr", attr).Info("Got reply from server")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment