From 73994b850629c6ec267903ad09e2a6eceef7a9cd Mon Sep 17 00:00:00 2001 From: arekkas Date: Sun, 26 Nov 2017 16:08:47 +0100 Subject: [PATCH] Replaces LogError with direct error logging --- pkg/retry.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/retry.go b/pkg/retry.go index cd64090634..5a23dcee14 100644 --- a/pkg/retry.go +++ b/pkg/retry.go @@ -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 {