From 85fe4abc78a764bbcb2ea25d8f1c7a2850eb70d8 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Mon, 27 Apr 2020 01:28:00 -0500 Subject: [PATCH] Only log errors for restore of articles as they aren't fatal --- Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift b/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift index feec1f38e..abf34a3c8 100644 --- a/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift +++ b/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift @@ -309,7 +309,11 @@ final class CloudKitAccountDelegate: AccountDelegate { account.fetchArticlesAsync(.webFeed(feed)) { result in switch result { case .success(let articles): - self.articlesZone.saveNewArticles(articles, completion: completion) + self.articlesZone.saveNewArticles(articles) { result in + if case .failure(let error) = result { + os_log(.error, log: self.log, "Restore articles error: %@.", error.localizedDescription) + } + } case .failure(let error): completion(.failure(error)) }