Skip to content

Commit

Permalink
chore: change cron example to Debugf log
Browse files Browse the repository at this point in the history
  • Loading branch information
wesbillman committed Dec 19, 2024
1 parent 3951fa2 commit bea9f83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/go/cron/cron.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import (

//ftl:cron 30s
func ThirtySeconds(ctx context.Context) error {
ftl.LoggerFromContext(ctx).Infof("Frequent cron job triggered.")
ftl.LoggerFromContext(ctx).Debugf("Frequent cron job triggered.")
return nil
}

//ftl:cron 0 * * * *
func Hourly(ctx context.Context) error {
ftl.LoggerFromContext(ctx).Infof("Hourly cron job triggered.")
ftl.LoggerFromContext(ctx).Debugf("Hourly cron job triggered.")
return nil
}

0 comments on commit bea9f83

Please sign in to comment.