diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-07-23 10:47:20 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-07-23 10:47:20 +0300 |
commit | 0c4f862361d7a0ec4ea713215eb8c907d4d52838 (patch) | |
tree | 915a1a5b87df69a101dd29a5b36ecfce043aefac /app/src | |
parent | eb2831373f65aba5fa3c3b64bd76f3c27fb3b905 (diff) |
Add some logging
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/SyncManager.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/SyncManager.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/SyncManager.java index 10b453b00..c804b6851 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/SyncManager.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/SyncManager.java @@ -434,14 +434,14 @@ public class SyncManager { if (requestFailedException.getStatusCode() == HTTP_UNAVAILABLE && requestFailedException.getCause() != null) { String errorString = requestFailedException.getCause().getMessage(); Capabilities capabilities = GsonConfig.getGson().fromJson(errorString, Capabilities.class); + DeckLog.verbose("HTTP Status " + HTTP_UNAVAILABLE + ": This server seems to be in maintenance mode."); if (capabilities.isMaintenanceEnabled()) { - doAsync(() -> { - onResponse(ParsedResponse.of(capabilities)); - }); + doAsync(() -> onResponse(ParsedResponse.of(capabilities))); } else { onError(throwable); } } else if (requestFailedException.getStatusCode() == HTTP_NOT_MODIFIED) { + DeckLog.verbose("HTTP Status " + HTTP_NOT_MODIFIED + ": There haven't been any changes on the server side for this request."); //could be after maintenance. so we have to at least revert the maintenance flag doAsync(() -> { Account acc = dataBaseAdapter.getAccountByIdDirectly(account.getId()); |