From ea58d5d3c9f0d4534a9ffd028b9461a75922d54f Mon Sep 17 00:00:00 2001 From: Keuin Date: Thu, 8 Sep 2022 11:23:46 +0800 Subject: Remove unnecessary newline in log text. --- common/retry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/retry.go b/common/retry.go index 435d407..1b28e1b 100644 --- a/common/retry.go +++ b/common/retry.go @@ -21,7 +21,7 @@ func AutoRetry[T any]( ret, err := supplier() if err != nil { if logger != nil { - logger.Printf("Try %v/%v (sleep %vs): %v\n", + logger.Printf("Try %v/%v (sleep %vs): %v", i, maxRetryTimes, retryInterval, err) } timer := time.NewTimer(retryInterval) -- cgit v1.2.3