Commit 6bf42dde by bergquist

tech(alerting): remove some logging

parent 4ed6b99d
...@@ -150,7 +150,6 @@ func buildGetNotifiers(log log.Logger) func(orgId int64, notificationGroups []in ...@@ -150,7 +150,6 @@ func buildGetNotifiers(log log.Logger) func(orgId int64, notificationGroups []in
} }
var result []*Notification var result []*Notification
log.Info("notifiriring", "count", len(query.Result), "groups", notificationGroups)
for _, notification := range query.Result { for _, notification := range query.Result {
not, err := NewNotificationFromDBModel(notification) not, err := NewNotificationFromDBModel(notification)
if err == nil { if err == nil {
......
...@@ -59,8 +59,6 @@ func (handler *ResultHandlerImpl) shouldUpdateState(result *AlertResult) bool { ...@@ -59,8 +59,6 @@ func (handler *ResultHandlerImpl) shouldUpdateState(result *AlertResult) bool {
return true return true
} }
//now := time.Now()
//olderThen15Min := query.Result.Created.Before(now.Add(time.Minute * -15))
lastExecution := query.Result.Created lastExecution := query.Result.Created
asdf := result.ExeuctionTime.Add(time.Minute * -15) asdf := result.ExeuctionTime.Add(time.Minute * -15)
olderThen15Min := lastExecution.Before(asdf) olderThen15Min := lastExecution.Before(asdf)
......
...@@ -24,7 +24,7 @@ func GetLastAlertStateQuery(cmd *m.GetLastAlertStateQuery) error { ...@@ -24,7 +24,7 @@ func GetLastAlertStateQuery(cmd *m.GetLastAlertStateQuery) error {
if len(states) == 0 { if len(states) == 0 {
cmd.Result = nil cmd.Result = nil
return fmt.Errorf("invalid amount of alertstates. Expected 1 got %v", len(states)) return nil
} }
cmd.Result = &states[0] cmd.Result = &states[0]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment