better log message for schedule filter

This commit is contained in:
BroodjeAap 2022-12-11 21:02:21 +00:00
parent 2430ebbc4b
commit b9a6801b70

View file

@ -337,7 +337,7 @@ func (web *Web) watchUpdate(c *gin.Context) {
}
entryID, err := web.cron.AddFunc(filter.Var1, func() { triggerSchedule(filter.WatchID, web) })
if err != nil {
log.Println("Could not start job for Watch: ", filter.WatchID)
log.Println("Could not start job for Watch: ", filter.WatchID, err)
continue
}
log.Println("Started CronJob for WatchID", filter.WatchID, "FilterID", filter.ID, "with schedule:", filter.Var1)