Skip to content

Commit

Permalink
more print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
waisbrot committed Jan 1, 2024
1 parent 7e9bec1 commit f8a9864
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions birdweather/forStation.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package birdweather

import (
"context"
"fmt"
"net/http"

"github.com/Khan/genqlient/graphql"
Expand Down Expand Up @@ -41,7 +42,9 @@ func RecordCountsForStationPastMinutes(stationId string, minutes int) {
if err != nil {
panic(err)
}
fmt.Printf("Got %d species for station %s\n", len(counts.Station.TopSpecies), stationId)
for _, count := range counts.Station.TopSpecies {
metrics.RecordBird(counts.Station.Name, count.Species.CommonName, count.Breakdown.AlmostCertain)
fmt.Printf("Recorded %d of %s\n", count.Breakdown.AlmostCertain, count.Species.CommonName)
}
}

0 comments on commit f8a9864

Please sign in to comment.