Skip to content

Commit

Permalink
Update log lever for retry
Browse files Browse the repository at this point in the history
  • Loading branch information
ruhan1 committed Oct 11, 2024
1 parent a1b19de commit 6df155b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
}
Expand All @@ -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
Expand Down

0 comments on commit 6df155b

Please sign in to comment.