From cf374794c8cbfd0412e0d24baa934c3ec2c58572 Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Fri, 1 Nov 2024 14:25:19 -0400 Subject: [PATCH] perf/app: log errors in /cron/syncinflux Change-Id: Ie6be018b761afcb5684621eeb08cf52aab7d1846 Reviewed-on: https://go-review.googlesource.com/c/build/+/624436 LUCI-TryBot-Result: Go LUCI Reviewed-by: Michael Knyszek Auto-Submit: Michael Pratt --- perf/app/influx.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/perf/app/influx.go b/perf/app/influx.go index cb32f739..d4ace2da 100644 --- a/perf/app/influx.go +++ b/perf/app/influx.go @@ -67,6 +67,7 @@ func (a *App) syncInflux(w http.ResponseWriter, r *http.Request) { lastPush, err := latestInfluxTimestamp(ctx, ifxc) if err != nil { + log.Printf("Error getting latest Influx timestamp: %v", err) http.Error(w, err.Error(), 500) return } @@ -79,6 +80,7 @@ func (a *App) syncInflux(w http.ResponseWriter, r *http.Request) { uploads, err := a.uploadsSince(ctx, lastPush) if err != nil { + log.Printf("Error getting new uploads: %v", err) http.Error(w, err.Error(), 500) return }