Logging level

This commit is contained in:
Neil Alexander 2020-08-07 17:33:03 +01:00
parent 12f2388777
commit b00f81cb5d
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -134,13 +134,13 @@ func (s *ServerStatistics) BackoffIfRequired(backingOff atomic.Bool, interrupt <
// Work out how long we should be backing off for.
duration := time.Second * time.Duration(math.Exp2(float64(count)))
logrus.Infof("Backing off %q for %s", s.serverName, duration)
logrus.Debugf("Backing off %q for %s", s.serverName, duration)
// Wait for either an interruption or for the backoff to
// complete.
select {
case <-interrupt:
logrus.Infof("Interrupting backoff for %q", s.serverName)
logrus.Debugf("Interrupting backoff for %q", s.serverName)
case <-time.After(duration):
}