Skip to content

Commit

Permalink
add missing log
Browse files Browse the repository at this point in the history
  • Loading branch information
cuichenli committed Feb 26, 2024
1 parent bd4fa6a commit a1b7f6f
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 @@ -40,7 +40,7 @@ public Optional<Region> getRegion() {
try {
return Optional.of(Region.of(result.get()));
} catch (IllegalArgumentException e) {
// TODO: LOG
log.failedToParseAwsRegion(result.get(), e.getMessage());
return Optional.empty();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@ public interface AwsSqsLogging extends BasicLogger {
@LogMessage(level = Level.WARN)
@Message(id = 19303, value = "Failed to load the AWS credential loader, use the default credential provider chain %s")
void failedToLoadAwsCredentialLoader(String message);

@LogMessage(level = Level.WARN)
@Message(id = 19304, value = "Failed to parse provided AWS Region, will apply the AWS SDK built-in logic to detect region. %s, %s")
void failedToParseAwsRegion(String region, String message);
}

0 comments on commit a1b7f6f

Please sign in to comment.