Skip to content

Commit b0b3367

Browse files
committed
Small fix
1 parent f6a9781 commit b0b3367

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/main/java/com/exceptionless/exceptionlessclient/settings/DefaultSettingsClient.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ public SettingsResponse getSettings(long version) {
5353
if (bodyStr == null) {
5454
return SettingsResponse.builder().code(response.code()).body("").build();
5555
}
56+
if (response.code() / 100 != 2) {
57+
return SettingsResponse.builder().code(response.code()).body(bodyStr).build();
58+
}
5659

5760
ServerSettings serverSettings =
5861
Utils.JSON_MAPPER.readValue(bodyStr, new TypeReference<ServerSettings>() {});

src/main/java/com/exceptionless/exceptionlessclient/settings/SettingsManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public void updateSettings() {
8888

8989
private boolean shouldNotUpdate(SettingsResponse response) {
9090
if (response.isNotModified()) {
91-
LOG.trace("No need to update, settings are not modified");
91+
LOG.info("No need to update, settings are not modified");
9292
return true;
9393
}
9494
if (!response.isSuccess()) {

0 commit comments

Comments
 (0)