Skip to content

Commit

Permalink
Add positional markers to message formatters to squash number format …
Browse files Browse the repository at this point in the history
…exceptions.
  • Loading branch information
seananthonywilliams committed Feb 3, 2020
1 parent 34639bb commit c12ecf7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ private void handleResponse(
// is a retriable error
if (retryCount.get() > maxRetries) {
final String message = MessageFormat
.format("OutOfRetriesError with last call {} {} {}",
.format("OutOfRetriesError with last call {0} {1} {2}",
response.getStatusCode(),
response.getErrorString(),
response.getResponseString()
Expand All @@ -226,7 +226,7 @@ private void handleResponse(
} //else

final String message = MessageFormat
.format("Retriable Error with last call {} {} {} - retying in {} ms",
.format("Retriable Error with last call {0} {1} {2} - retying in {3} ms",
response.getStatusCode(),
response.getErrorString(),
response.getResponseString(),
Expand All @@ -240,7 +240,7 @@ private void handleResponse(

// NOT retrying -> data loss
final String message = MessageFormat
.format("Non-retriable Error with last call {} {} {} ",
.format("Non-retriable Error with last call {0} {1} {2} ",
response.getStatusCode(),
response.getErrorString(),
response.getResponseString()
Expand Down

0 comments on commit c12ecf7

Please sign in to comment.