improved scheduler logs

This commit is contained in:
Radu Ioan Fericean
2015-09-29 09:36:38 +03:00
parent 8e520dd0c4
commit 52d8cecd12
2 changed files with 6 additions and 10 deletions

View File

@@ -20,7 +20,6 @@ package scheduler
import (
"fmt"
"log"
"sort"
"sync"
"time"
@@ -93,7 +92,6 @@ func (s *Scheduler) LoadActionPlans(storage engine.RatingStorage) {
isAsap := false
newApls := make([]*engine.ActionPlan, 0) // will remove the one time runs from the database
for _, ap := range aps {
log.Printf("AP %+v", ap)
isAsap = ap.IsASAP()
toBeSaved = toBeSaved || isAsap
if isAsap {
@@ -114,9 +112,6 @@ func (s *Scheduler) LoadActionPlans(storage engine.RatingStorage) {
newApls = append(newApls, ap)
}
if toBeSaved {
for _, ap := range newApls {
log.Printf("NewAP: %+v", ap)
}
engine.Guardian.Guard(func() (interface{}, error) {
storage.SetActionPlans(key, newApls)
return 0, nil