ai cooking
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

some location logging per backend (#326)

Co-authored-by: paul miller <paul.miller>

authored by

Paul Miller
paul miller
and committed by
GitHub
03651f9f 560b2797

+2 -1
+2 -1
internal/locations/locations.go
··· 147 147 errors <- err 148 148 return 149 149 } 150 + slog.InfoContext(ctx, "Got results for backend", "backend", fmt.Sprintf("%T", backend), "zip", zipcode, "count", len(locations)) 150 151 results <- locations 151 152 }(backend) 152 153 } ··· 172 173 requestedCentroid, hasRequestedCentroid := l.zipCentroids.ZipCentroidByZIP(zipcode) 173 174 if !hasRequestedCentroid { 174 175 //were missign zip codes. Make this an error later? 175 - slog.WarnContext(ctx, "requested zip has no centroid; returning unsorted locations without distance filter", "zip", zipcode) 176 + slog.WarnContext(ctx, "requested zip has no centroid; returning unsorted locations without distance filter", "zip", zipcode, "count", len(allLocations)) 176 177 return allLocations, nil 177 178 } 178 179