Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yongqiang YANG committed Dec 26, 2024
1 parent 770ea69 commit 5038e1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public static String checkRegion(String endpoint, String region, String regionKe
}
if (Strings.isNullOrEmpty(region)) {
String errorMsg = String.format("No '%s' info found, using SDK default region: us-east-1", regionKey);
LOG.warn(errorMsg);
LOG.info(errorMsg);
return "us-east-1";
}
return region;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ protected void setProperties(Map<String, String> properties) {
.equalsIgnoreCase("true");
forceParsingByStandardUri = this.properties.getOrDefault(PropertyConverter.FORCE_PARSING_BY_STANDARD_URI,
"false").equalsIgnoreCase("true");

String endpoint = properties.get(S3Properties.ENDPOINT);
String region = properties.get(S3Properties.REGION);
this.properties.put(S3Properties.REGION, PropertyConverter.checkRegion(endpoint, region, S3Properties.REGION));
}

@Override
Expand Down

0 comments on commit 5038e1e

Please sign in to comment.