Skip to content

Commit 17b098c

Browse files
[aws AppConfig] Fix INFO logging message format for retries (#210)
Co-authored-by: robin.bygrave <[email protected]>
1 parent 1b0fb94 commit 17b098c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

avaje-aws-appconfig/src/main/java/io/avaje/config/appconfig/AppConfigPlugin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public void load(Configuration configuration) {
4040
loader = new Loader(configuration);
4141
int attempts = loader.initialLoad();
4242
if (attempts > 1){
43-
log.log(INFO, "AwsAppConfig loaded after {} attempts", attempts + 1);
43+
log.log(INFO, "AwsAppConfig loaded after {0} attempts", attempts + 1);
4444
}
4545
}
4646

@@ -105,7 +105,7 @@ int initialLoad() {
105105
return i;
106106
} catch (AppConfigFetcher.FetchException e) {
107107
lastAttempt = e;
108-
log.log(INFO, "retrying, load attempt {} got {}", i, e.getMessage());
108+
log.log(INFO, "retrying, load attempt {0} got {1}", i, e.getMessage());
109109
LockSupport.parkNanos(250_000_000); // 250 millis
110110
}
111111
}

0 commit comments

Comments
 (0)