Skip to content

Commit 2178b59

Browse files
author
Justin Fudally
committed
remove spammy error
1 parent 5816ede commit 2178b59

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

go/logic/throttler.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var (
2525
417: "Expectation failed",
2626
429: "Too many requests",
2727
500: "Internal server error",
28-
-1: "Connection error",
28+
-1: "Connection error",
2929
}
3030
// See https://github.com/github/freno/blob/master/doc/http.md
3131
httpStatusFrenoMessages = map[int]string{
@@ -295,7 +295,6 @@ func (this *Throttler) collectThrottleHTTPStatus(firstThrottlingCollected chan<-
295295
if err != nil {
296296
// If not told to ignore errors, we'll throttle on HTTP connection issues
297297
if !this.migrationContext.IgnoreHTTPErrors {
298-
log.Errorf("errors occurred during HTTP throttle check: %+v", err)
299298
atomic.StoreInt64(&this.migrationContext.ThrottleHTTPStatusCode, int64(-1))
300299
}
301300
}
@@ -312,7 +311,6 @@ func (this *Throttler) collectThrottleHTTPStatus(firstThrottlingCollected chan<-
312311
if err != nil {
313312
// If not told to ignore errors, we'll throttle on HTTP connection issues
314313
if !this.migrationContext.IgnoreHTTPErrors {
315-
log.Errorf("errors occurred during HTTP throttle check: %+v", err)
316314
atomic.StoreInt64(&this.migrationContext.ThrottleHTTPStatusCode, int64(-1))
317315
}
318316
}

0 commit comments

Comments
 (0)