Skip to content

Commit cf37479

Browse files
prattmicgopherbot
authored andcommitted
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 <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> Auto-Submit: Michael Pratt <[email protected]>
1 parent d46d86b commit cf37479

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

perf/app/influx.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ func (a *App) syncInflux(w http.ResponseWriter, r *http.Request) {
6767

6868
lastPush, err := latestInfluxTimestamp(ctx, ifxc)
6969
if err != nil {
70+
log.Printf("Error getting latest Influx timestamp: %v", err)
7071
http.Error(w, err.Error(), 500)
7172
return
7273
}
@@ -79,6 +80,7 @@ func (a *App) syncInflux(w http.ResponseWriter, r *http.Request) {
7980

8081
uploads, err := a.uploadsSince(ctx, lastPush)
8182
if err != nil {
83+
log.Printf("Error getting new uploads: %v", err)
8284
http.Error(w, err.Error(), 500)
8385
return
8486
}

0 commit comments

Comments
 (0)