Skip to content

Commit 8f64b46

Browse files
committed
Skip stacktrace in info log for s3 region loading issue
The stacktrace is rather excessive given the level of the log message. The information provided in the exception message should be sufficient for taking actions. Also adjust the wording to better match the contribuation guide for logging messages.
1 parent 74cd006 commit 8f64b46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/repository-s3/src/main/java/org/elasticsearch/repositories/s3/S3RepositoryPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private static Region getDefaultRegion() {
101101
try {
102102
return DefaultAwsRegionProviderChain.builder().build().getRegion();
103103
} catch (Exception e) {
104-
logger.info("failed to obtain region from default provider chain", e);
104+
logger.info("unable to obtain region from default provider chain: {}", e.getMessage());
105105
return null;
106106
}
107107
}

0 commit comments

Comments
 (0)