Skip to content

Commit

Permalink
Replaces LogError with direct error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
arekkas authored and arekkas committed Nov 26, 2017
1 parent 4207aef commit 73994b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ func Retry(logger logrus.FieldLogger, maxWait time.Duration, failAfter time.Dura
retryStart = time.Now()
}

LogError(err, logger)
logger.Infof("Retrying in %f seconds...", loopWait.Seconds())
logger.WithError(err).Infof("Retrying in %f seconds...", loopWait.Seconds())
time.Sleep(loopWait)
loopWait = loopWait * time.Duration(int64(2))
if loopWait > maxWait {
Expand Down

0 comments on commit 73994b8

Please sign in to comment.