This commit is contained in:
gazebo
2019-03-13 16:11:37 +08:00
parent fd2638f831
commit 4a4bd4518b
2 changed files with 2 additions and 1 deletions

View File

@@ -263,7 +263,7 @@ func (t *BaseTask) run(taskHandler func()) {
utils.CallFuncAsync(func() {
defer func() {
if r := recover(); r != nil {
globals.SugarLogger.Errorf("panic in BaseTask.run task:%s, task detail:%s", t.Name, utils.Format4Output(t, false))
globals.SugarLogger.Errorf("panic in BaseTask.run task:%s, task detail:%s, r:%v", t.Name, utils.Format4Output(t, false), r)
}
}()

View File

@@ -59,6 +59,7 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error)
if stepToTime.Sub(toTime) == 0 {
break
}
stepFromTime = stepToTime.Add(time.Second)
}
if err == nil && len(orderCommentList) > 0 {
err = partner.CurOrderManager.OnOrderComments(orderCommentList)