Commit d274b7aa authored by vicotor's avatar vicotor

add log

parent 59c0e8ab
......@@ -258,13 +258,14 @@ func (n *Node) Loop(idx int) {
TaskIsSucceed: false,
TaskError: err.Error(),
}
l.WithError(err).Error("pop worker failed")
if e := n.postReceipt(task, result, err); e != nil {
l.WithError(e).Error("post task receipt failed")
}
if e := n.postResult(task, result); e != nil {
l.WithError(e).Error("post task result failed")
}
l.WithField("timecost", time.Now().Sub(t1).Milliseconds()).WithError(err).Error("pop worker failed")
break
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment