From f8a9864a4b79876dcc2c6aa296bc4e80672c520a Mon Sep 17 00:00:00 2001 From: Nathaniel Waisbrot Date: Mon, 1 Jan 2024 09:45:48 -0500 Subject: [PATCH] more print statements --- birdweather/forStation.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/birdweather/forStation.go b/birdweather/forStation.go index 9a80bde..845afee 100644 --- a/birdweather/forStation.go +++ b/birdweather/forStation.go @@ -2,6 +2,7 @@ package birdweather import ( "context" + "fmt" "net/http" "github.com/Khan/genqlient/graphql" @@ -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) } }