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
No related branches found
No related tags found
No related merge requests found
......@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment