Skip to content

Commit

Permalink
test: log errors
Browse files Browse the repository at this point in the history
  • Loading branch information
flxw committed Sep 25, 2023
1 parent fc6c8eb commit ca04527
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ func main() {
logger := slog.New(slog.NewJSONHandler(os.Stdout, nil))
slog.SetDefault(logger)

slog.Warn("This is a warning")
slog.Error("This is an error")

c := cron.New(cron.WithChain(cron.SkipIfStillRunning(cron.DefaultLogger)))
c.AddFunc("@every 20s", CommenceCrawlRun)
c.AddFunc("@daily", RefreshMaterializedViews)
Expand Down

0 comments on commit ca04527

Please sign in to comment.