From 6105d7bea9ab7437de868c351d3c28a081639f30 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Wed, 23 Feb 2022 10:22:03 +0000 Subject: [PATCH 1/2] Log `since` token when doing an incremental sync This aids debugging when `/sync` does something weird server side. Since we already log a line each time we do an incremental sync this shouldn't cause a problem. --- .../org/matrix/android/sdk/internal/session/sync/SyncTask.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/SyncTask.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/SyncTask.kt index 1ee62ad774..83e8cfb709 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/SyncTask.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/SyncTask.kt @@ -147,7 +147,7 @@ internal class DefaultSyncTask @Inject constructor( } defaultSyncStatusService.endAll() } else { - Timber.tag(loggerTag.value).d("Start incremental sync request") + Timber.tag(loggerTag.value).d("Start incremental sync request with since token $token") defaultSyncStatusService.setStatus(SyncStatusService.Status.IncrementalSyncIdle) val syncResponse = try { executeRequest(globalErrorReceiver) { From 6eae151e78d8c6c99d5d3c42e686b8ed2123e825 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Wed, 23 Feb 2022 10:26:02 +0000 Subject: [PATCH 2/2] Newsfile --- changelog.d/5312.misc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/5312.misc diff --git a/changelog.d/5312.misc b/changelog.d/5312.misc new file mode 100644 index 0000000000..db54c5afd2 --- /dev/null +++ b/changelog.d/5312.misc @@ -0,0 +1 @@ +Log the `since` token used when doing an incremental sync.