Add logging for articlesZone.fetchChangesInZone.

This commit is contained in:
Brent Simmons committed 2026-03-12 21:47:38 -07:00
1 parent 65b3f1dbc8
commit 5f77fd1273
1 file changed
+8 -1
@@ -690,7 +690,14 @@ private extension CloudKitAccountDelegate {
syncProgress.completeTask()
try await sendArticleStatus(account: account, showProgress: true)
try? await articlesZone.fetchChangesInZone()
do {
try await articlesZone.fetchChangesInZone()
} catch {
Self.logger.error("CloudKitAccountDelegate: fetchChangesInZone error: \(error.localizedDescription)")
if let account = self.account {
postSyncError(error, account: account, operation: "Fetching zone changes")
}
}
} catch {
Self.logger.error("CloudKitAccountDelegate: \(#function, privacy: .public) error: \(error.localizedDescription)")
}