Skip to content

Commit

Permalink
Proxy Port system properties: changed log level from error to warning (
Browse files Browse the repository at this point in the history
…#4793)

* Changed log level from error to warning
  • Loading branch information
debora-ito committed Dec 20, 2023
1 parent 17cf852 commit 573699c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changes/next-release/bugfix-AWSSDKforJavav2-1054797.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"type": "bugfix",
"category": "AWS SDK for Java v2",
"contributor": "",
"description": "Changed the log level from error to warning when exceptions are found in parsing proxy configuration from system properties/environment variables, as we ignore those exceptions and proceed."
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private Optional<URL> silentlyGetUrl() {
try {
return Optional.of(new URL(stringUrl));
} catch (MalformedURLException e) {
log.error(() -> "Malformed proxy config environment variable " + stringUrl, e);
log.warn(() -> "Malformed proxy config environment variable.", e);
}
}
return Optional.empty();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private static Integer safelyParseInt(String string) {
try {
return Integer.parseInt(string);
} catch (Exception e) {
log.error(() -> "Failed to parse string" + string, e);
log.warn(() -> "Failed to parse string.", e);
}
return null;
}
Expand Down

0 comments on commit 573699c

Please sign in to comment.