Skip to content

Commit

Permalink
remove some debugging logs
Browse files Browse the repository at this point in the history
No longer needed
  • Loading branch information
ewollesen committed Jul 11, 2024
1 parent 26e3600 commit c50d589
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions data/events/alerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ func (e *evaluator) Evaluate(ctx context.Context, followedUserID string) (
if err != nil {
return nil, err
}
e.logger(ctx).Debugf("%d alerts configs found", len(alertsConfigs))

alertsConfigsByUploadID := e.mapAlertsConfigsByUploadID(alertsConfigs)

Expand Down Expand Up @@ -242,9 +241,7 @@ func (e *evaluator) gatherAlertsConfigs(ctx context.Context,
if err != nil {
return nil, err
}
e.logger(ctx).Debugf("after List, %d alerts configs", len(alertsConfigs))
alertsConfigs = slices.DeleteFunc(alertsConfigs, e.authDenied(ctx))
e.logger(ctx).Debugf("after perms check, %d alerts configs", len(alertsConfigs))
return alertsConfigs, nil
}

Expand Down Expand Up @@ -293,7 +290,6 @@ func (e *evaluator) gatherData(ctx context.Context, followedUserID, uploadID str
return cmp.Compare(i.LongestDelay(), j.LongestDelay())
}).LongestDelay()
longestDelay = max(5*time.Minute, longestDelay)
e.logger(ctx).WithField("longestDelay", longestDelay).Debug("here it is")
params := store.AlertableParams{
UserID: followedUserID,
UploadID: uploadID,
Expand Down

0 comments on commit c50d589

Please sign in to comment.