Skip to content

Commit

Permalink
Don't spam logs when quality calculation has no recent observation
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippMatthes committed May 17, 2024
1 parent 54950c0 commit ae51e43
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions predictions/quality.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,7 @@ func calculatePredictionQuality(thingName string) error {
func CheckPredictionQualityPeriodically() {
for {
things.Things.Range(func(k, v interface{}) bool {
err := calculatePredictionQuality(k.(string))
if err != nil {
fmt.Printf("Error calculating prediction quality: %v\n", err)
}
calculatePredictionQuality(k.(string))
return true
})
time.Sleep(1 * time.Second)
Expand Down

0 comments on commit ae51e43

Please sign in to comment.