From 6df155bc5a2f4ab0c207a86866d24628c0ad30cd Mon Sep 17 00:00:00 2001 From: ruhan Date: Fri, 11 Oct 2024 11:06:05 +0800 Subject: [PATCH] Update log lever for retry --- .../org/commonjava/util/gateway/util/WebClientAdapter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/commonjava/util/gateway/util/WebClientAdapter.java b/src/main/java/org/commonjava/util/gateway/util/WebClientAdapter.java index c094bee..b807a59 100644 --- a/src/main/java/org/commonjava/util/gateway/util/WebClientAdapter.java +++ b/src/main/java/org/commonjava/util/gateway/util/WebClientAdapter.java @@ -410,7 +410,7 @@ public Response intercept( @NotNull Chain chain ) throws IOException Span.current() .setAttribute( "target.try." + tryCounter + ".status_code", resp.code() ); - logger.debug( "TRY({}/{}): Response missing or indicates server error: {}. Retrying", + logger.warn( "TRY({}/{}): Response missing or indicates server error: {}. Retrying", tryCounter, count, resp ); } } @@ -426,7 +426,7 @@ public Response intercept( @NotNull Chain chain ) throws IOException Span.current() .setAttribute( "target.try." + tryCounter + ".error_class", e.getClass().getSimpleName() ); - logger.debug( "TRY(" + tryCounter + "/" + count + "): Failed upstream request: " + req.url(), e ); + logger.warn( "TRY(" + tryCounter + "/" + count + "): Failed upstream request: " + req.url(), e ); } try