|
@@ -42,7 +42,7 @@ func CrontabByTicker(ctx context.Context, cron config.Cron, f func(cron config.C
|
|
|
g.Log().Info(ctx, "----------------------end-------------当前时间:", time.Now().Format(date.Date_Full_Layout))
|
|
|
}, cron.Name)
|
|
|
if err != nil {
|
|
|
- g.Log().Info(ctx, fmt.Sprintf("%s定时任务异常", "----"))
|
|
|
+ g.Log().Info(ctx, fmt.Sprintf("%s定时任务异常,err:%s", "----", err.Error()))
|
|
|
}
|
|
|
//首次运行
|
|
|
if cron.First {
|