add error logging

This commit is contained in:
Justin Fudally 2020-03-25 16:06:17 -05:00
parent 57cf5f3c90
commit df60fa4204

View File

@ -293,6 +293,7 @@ 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))
}
}