From bdf9d40ae8190b16e0c0b77f1f3350f181fa9fdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=82=E6=A2=A6=E6=8A=80=E6=9C=AF?= <596392912@qq.com> Date: Fri, 26 Nov 2021 23:02:02 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20mica-http=20=E5=8E=BB=E6=8E=89=20s?= =?UTF-8?q?pring=20retry=20=E4=BE=9D=E8=B5=96=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/net/dreamlu/mica/core/retry/SimpleRetry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mica-core/src/main/java/net/dreamlu/mica/core/retry/SimpleRetry.java b/mica-core/src/main/java/net/dreamlu/mica/core/retry/SimpleRetry.java index 970944b6..ea72d71d 100644 --- a/mica-core/src/main/java/net/dreamlu/mica/core/retry/SimpleRetry.java +++ b/mica-core/src/main/java/net/dreamlu/mica/core/retry/SimpleRetry.java @@ -77,7 +77,7 @@ public final class SimpleRetry implements IRetry { return retryCallback.call(); } catch (Throwable e) { retryCount = i + 1; - log.warn("retry on {} times.", retryCount, e); + log.warn("retry on {} times error{}.", retryCount, e.getMessage()); lastThrowable = e; if (sleepMillis > 0 && retryCount < maxAttempts) { ThreadUtil.sleep(sleepMillis); -- GitLab