diff --git a/CHANGELOG.md b/CHANGELOG.md index 200b60955..64c76b291 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## Next Release +- Fixed logger format string in `BoxAPIRequest.java` and `BoxDeveloperEditionAPIConnection.java` + ## 2.43.0 [2019-12-20] - Throw exceptions for setMetadata on Files and Folders for non-409 errors diff --git a/src/main/java/com/box/sdk/BoxAPIRequest.java b/src/main/java/com/box/sdk/BoxAPIRequest.java index 048562013..44342fc76 100644 --- a/src/main/java/com/box/sdk/BoxAPIRequest.java +++ b/src/main/java/com/box/sdk/BoxAPIRequest.java @@ -383,7 +383,7 @@ public BoxAPIResponse send(ProgressListener listener) { throw apiException; } - LOGGER.log(Level.WARNING, "Retrying request due to transient error status=%d body=%s", + LOGGER.log(Level.WARNING, "Retrying request due to transient error status={0} body={1}", new Object[] {apiException.getResponseCode(), apiException.getResponse()}); try { diff --git a/src/main/java/com/box/sdk/BoxDeveloperEditionAPIConnection.java b/src/main/java/com/box/sdk/BoxDeveloperEditionAPIConnection.java index dc31c5097..ddf4a7335 100644 --- a/src/main/java/com/box/sdk/BoxDeveloperEditionAPIConnection.java +++ b/src/main/java/com/box/sdk/BoxDeveloperEditionAPIConnection.java @@ -350,7 +350,7 @@ public void authenticate() { throw apiException; } - logger.log(Level.WARNING, "Retrying authentication request due to transient error status=%d body=%s", + logger.log(Level.WARNING, "Retrying authentication request due to transient error status={0} body={1}", new Object[] {apiException.getResponseCode(), apiException.getResponse()}); try {