From 7b2436cd453364c85518697a2880bacf01167138 Mon Sep 17 00:00:00 2001 From: Jannik Hollenbach Date: Sat, 14 Dec 2024 18:24:49 +0100 Subject: [PATCH] More consistent balancer logs --- balancer/routes/proxy.go | 2 +- balancer/routes/score-board.go | 1 - balancer/routes/teamStatus.go | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/balancer/routes/proxy.go b/balancer/routes/proxy.go index 2a870a179..bc905ce57 100644 --- a/balancer/routes/proxy.go +++ b/balancer/routes/proxy.go @@ -65,7 +65,7 @@ func handleProxy(bundle *bundle.Bundle) http.Handler { } target := bundle.GetJuiceShopUrlForTeam(team, bundle) - bundle.Log.Printf("Proxying request for team (%s): %s %s to %s", team, req.Method, req.URL, target) + bundle.Log.Printf("Proxy for team (%s): %s %s", team, req.Method, req.URL) // Rewrite the request to the target server newReverseProxy(target).ServeHTTP(responseWriter, req) }, diff --git a/balancer/routes/score-board.go b/balancer/routes/score-board.go index 884890328..d2eb9e8cf 100644 --- a/balancer/routes/score-board.go +++ b/balancer/routes/score-board.go @@ -34,7 +34,6 @@ func handleScoreBoard(bundle *b.Bundle, scoringService *scoring.ScoringService) } totalTeams = scoringService.WaitForUpdatesNewerThan(req.Context(), lastSeenUpdate) if totalTeams == nil { - bundle.Log.Printf("Got nothing from waiting for updates") responseWriter.WriteHeader(http.StatusNoContent) responseWriter.Write([]byte{}) return diff --git a/balancer/routes/teamStatus.go b/balancer/routes/teamStatus.go index 0908fcb8b..7cbac1081 100644 --- a/balancer/routes/teamStatus.go +++ b/balancer/routes/teamStatus.go @@ -56,7 +56,6 @@ func handleTeamStatus(bundle *bundle.Bundle, scoringService *scoring.ScoringServ } teamScore = scoringService.WaitForTeamUpdatesNewerThan(req.Context(), team, lastSeenUpdate) if teamScore == nil { - bundle.Log.Printf("Got nothing from waiting for updates") responseWriter.WriteHeader(http.StatusNoContent) responseWriter.Write([]byte{}) return