better logging of triggered schedule
This commit is contained in:
parent
ed7e911946
commit
c315ac1000
1 changed files with 1 additions and 3 deletions
|
@ -34,7 +34,7 @@ func processFilters(filters []Filter, web *Web, watch *Watch, debug bool, schedu
|
|||
|
||||
for _, filter := range filters {
|
||||
if scheduleID != nil && filter.ID == *scheduleID {
|
||||
log.Println("Triggered by schedule:", filter.Name)
|
||||
log.Println(fmt.Sprintf("Scheduled Watch for '%s', triggered by schedule '%s'", watch.Name, filter.Name))
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -913,8 +913,6 @@ func triggerSchedule(watchID uint, web *Web, scheduleID *uint) {
|
|||
var connections []FilterConnection
|
||||
web.db.Model(&FilterConnection{}).Where("watch_id = ?", watch.ID).Find(&connections)
|
||||
|
||||
log.Println("Trigger schedule for", watch.ID, ":", *scheduleID)
|
||||
|
||||
buildFilterTree(filters, connections)
|
||||
processFilters(filters, web, watch, false, scheduleID)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue