Skip to content

Commit

Permalink
chore: change cron example to Debugf log (#3827)
Browse files Browse the repository at this point in the history
These info logs were bugging me 😂 

```
info: All modules deployed in 32.57s, watching for changes...
info:cron: Frequent cron job triggered.
info:cron: Frequent cron job triggered.
info:cron: Frequent cron job triggered.
info:cron: Frequent cron job triggered.
info:cron: Frequent cron job triggered.
info:cron: Frequent cron job triggered.
info:cron: Frequent cron job triggered.
```
  • Loading branch information
wesbillman authored Dec 19, 2024
1 parent cd76a2e commit 7b03eee
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 7b03eee

Please sign in to comment.