Skip to content

Commit

Permalink
#50 - Fix debug logging messages for retry and providers
Browse files Browse the repository at this point in the history
  • Loading branch information
rbygrave committed Jun 9, 2022
1 parent 603b9c9 commit 864d9c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void init() {
for (HttpApiProvider apiProvider : ServiceLoader.load(HttpApiProvider.class)) {
addProvider(apiProvider);
}
log.log(DEBUG, "providers for %s", providerMap.keySet());
log.log(DEBUG, "providers for {0}", providerMap.keySet());
}

void addProvider(HttpApiProvider apiProvider) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public boolean isRetry(int retryCount, HttpResponse<?> response) {
return false;
}
if (log.isLoggable(Level.DEBUG)) {
log.log(Level.DEBUG, "retry count:%s status:%s uri:%s", retryCount, response.statusCode(), response.uri());
log.log(Level.DEBUG, "retry count:{0} status:{1} uri:{2}", retryCount, response.statusCode(), response.uri());
}
try {
int gitter = gitterMillis < 1 ? 0 : random.nextInt(gitterMillis);
Expand Down

0 comments on commit 864d9c1

Please sign in to comment.