remove noisy internal logging content of package gcron (#2141)

This commit is contained in:
John Guo
2022-09-23 20:50:25 +08:00
committed by GitHub
parent 2b4598f65b
commit 714bda3e0f

View File

@ -16,7 +16,6 @@ import (
"github.com/gogf/gf/v2/container/gtype"
"github.com/gogf/gf/v2/errors/gcode"
"github.com/gogf/gf/v2/errors/gerror"
"github.com/gogf/gf/v2/internal/intlog"
"github.com/gogf/gf/v2/os/gtimer"
"github.com/gogf/gf/v2/util/gconv"
)
@ -138,18 +137,18 @@ func (entry *Entry) Close() {
func (entry *Entry) checkAndRun(ctx context.Context) {
currentTime := time.Now()
if !entry.schedule.checkMeetAndUpdateLastSeconds(ctx, currentTime) {
intlog.Printf(
ctx,
`timely check, current time does not meet cron job "%s"`,
entry.getJobNameWithPattern(),
)
//intlog.Printf(
// ctx,
// `timely check, current time does not meet cron job "%s"`,
// entry.getJobNameWithPattern(),
//)
return
}
intlog.Printf(
ctx,
`timely check, current time meets cron job "%s"`,
entry.getJobNameWithPattern(),
)
//intlog.Printf(
// ctx,
// `timely check, current time meets cron job "%s"`,
// entry.getJobNameWithPattern(),
//)
switch entry.cron.status.Val() {
case StatusStopped:
return