diff --git a/pkg/cron/cron.go b/pkg/cron/cron.go index fbb01d0..c0bef2b 100644 --- a/pkg/cron/cron.go +++ b/pkg/cron/cron.go @@ -3,6 +3,8 @@ package cron import ( "context" "time" + + "github.com/golang/glog" ) type Cron struct { @@ -45,6 +47,7 @@ func (c *Cron) Run(ctx context.Context) { if time.Now().After(c.time) { c.time = c.time.Add(time.Hour * 24) } + glog.Infof("cron 下次运行时间: %s", c.time) select { case <-time.After(time.Until(c.time)): if c.f != nil {