From 2178b5947be80da499fef2c31ac827eaf4920d48 Mon Sep 17 00:00:00 2001 From: Justin Fudally Date: Mon, 30 Mar 2020 10:05:23 -0500 Subject: [PATCH] remove spammy error --- go/logic/throttler.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/go/logic/throttler.go b/go/logic/throttler.go index be752fe..2cf0d97 100644 --- a/go/logic/throttler.go +++ b/go/logic/throttler.go @@ -25,7 +25,7 @@ var ( 417: "Expectation failed", 429: "Too many requests", 500: "Internal server error", - -1: "Connection error", + -1: "Connection error", } // See https://github.com/github/freno/blob/master/doc/http.md httpStatusFrenoMessages = map[int]string{ @@ -295,7 +295,6 @@ func (this *Throttler) collectThrottleHTTPStatus(firstThrottlingCollected chan<- if err != nil { // If not told to ignore errors, we'll throttle on HTTP connection issues if !this.migrationContext.IgnoreHTTPErrors { - log.Errorf("errors occurred during HTTP throttle check: %+v", err) atomic.StoreInt64(&this.migrationContext.ThrottleHTTPStatusCode, int64(-1)) } } @@ -312,7 +311,6 @@ func (this *Throttler) collectThrottleHTTPStatus(firstThrottlingCollected chan<- if err != nil { // If not told to ignore errors, we'll throttle on HTTP connection issues if !this.migrationContext.IgnoreHTTPErrors { - log.Errorf("errors occurred during HTTP throttle check: %+v", err) atomic.StoreInt64(&this.migrationContext.ThrottleHTTPStatusCode, int64(-1)) } }