Only log errors for restore of articles as they aren't fatal

This commit is contained in:
Maurice Parker 2020-04-27 01:28:00 -05:00
parent 81d82aea78
commit 85fe4abc78
1 changed files with 5 additions and 1 deletions

View File

@ -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))
}