Skip to content

Commit

Permalink
log when negative values are parsed
Browse files Browse the repository at this point in the history
  • Loading branch information
carterkozak committed Nov 25, 2024
1 parent a111173 commit 4c4ccab
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ static int getProxyUpstreamRequestAttempts(Response response) {
if (parsed >= 0) {
return parsed;
}
log.warn(
"Received an unexpected negative proxy upstream request attempts value, using zero",
SafeArg.of("proxyUpstreamRequestAttempts", proxyUpstreamRequestAttempts));
} catch (NumberFormatException e) {
log.warn(
"Failed to parse proxy upstream request attempts, assuming zero",
Expand Down

0 comments on commit 4c4ccab

Please sign in to comment.