Skip to content

Commit eec5306

Browse files
Merge pull request #30 from Nordstrom/bug-fix-message-formatters-to-mitigate-number-format-exceptions
Add positional markers to message formatters to squash number format …
2 parents 34639bb + c12ecf7 commit eec5306

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/nordstrom/kafka/connect/lambda/LambdaSinkTask.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ private void handleResponse(
216216
// is a retriable error
217217
if (retryCount.get() > maxRetries) {
218218
final String message = MessageFormat
219-
.format("OutOfRetriesError with last call {} {} {}",
219+
.format("OutOfRetriesError with last call {0} {1} {2}",
220220
response.getStatusCode(),
221221
response.getErrorString(),
222222
response.getResponseString()
@@ -226,7 +226,7 @@ private void handleResponse(
226226
} //else
227227

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

241241
// NOT retrying -> data loss
242242
final String message = MessageFormat
243-
.format("Non-retriable Error with last call {} {} {} ",
243+
.format("Non-retriable Error with last call {0} {1} {2} ",
244244
response.getStatusCode(),
245245
response.getErrorString(),
246246
response.getResponseString()

0 commit comments

Comments
 (0)