From 89029d54b57f429948be650800cf7bcad40a5a65 Mon Sep 17 00:00:00 2001 From: Shubham Goyal Date: Wed, 20 Sep 2023 10:12:10 -0500 Subject: [PATCH] logs restore cache invalidation header --- app/src/org/commcare/network/CommcareRequestGenerator.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/org/commcare/network/CommcareRequestGenerator.java b/app/src/org/commcare/network/CommcareRequestGenerator.java index 3904b44830..00dd611455 100755 --- a/app/src/org/commcare/network/CommcareRequestGenerator.java +++ b/app/src/org/commcare/network/CommcareRequestGenerator.java @@ -1,6 +1,7 @@ package org.commcare.network; import android.net.Uri; +import android.util.Log; import com.google.common.collect.ArrayListMultimap; import com.google.common.collect.ImmutableMultimap; @@ -16,9 +17,11 @@ import org.commcare.interfaces.CommcareRequestEndpoints; import org.commcare.models.database.SqlStorage; import org.commcare.provider.DebugControlsReceiver; +import org.commcare.util.LogTypes; import org.commcare.utils.SyncDetailCalculations; import org.javarosa.core.model.User; import org.javarosa.core.model.utils.DateUtils; +import org.javarosa.core.services.Logger; import java.io.FileNotFoundException; import java.io.IOException; @@ -137,6 +140,9 @@ public Response makeCaseFetchRequest(String baseUri, boolean inclu params.put("overwrite_cache", "true"); // Always wipe this flag after we have used it once CommCareApplication.instance().setInvalidateCacheFlag(false); + Logger.log(LogTypes.TYPE_USER, "setting cache invalidation header as true for restore"); + } else { + Logger.log(LogTypes.TYPE_USER, "setting cache invalidation header as false for restore"); } requester = CommCareApplication.instance().createGetRequester(