[REV] add get task error details when get failed

This commit is contained in:
Bay 2018-01-02 11:36:10 +08:00
parent 5aa5eed6b5
commit 1b5799bf19

View File

@ -200,7 +200,8 @@ func Status(task string, nodes []string) {
time.Sleep(3 * time.Second)
taskE, err := clients.NodeClient.Tasks().Get(task)
if err != nil {
logrus.Warnf("error get task %s,retry", task)
logrus.Warnf("error get task %s ,details %s,retry", task,err.String())
checkFail += 1
continue
}