Tweaking the logging to be more useful.

This commit is contained in:
Kiel Gillard 2019-10-15 18:39:09 +11:00
parent 0d20bccc55
commit 2ecdf92f40
2 changed files with 3 additions and 3 deletions

View File

@ -53,6 +53,8 @@ final class FeedlySyncStarredArticlesOperation: FeedlyOperation {
let syncSaved = FeedlyCompoundOperation {
let saved = FeedlyTagResourceId.saved(for: user)
os_log(.debug, log: log, "Getting starred articles from \"%@\".", saved.id)
let getSavedStream = FeedlyGetStreamOperation(account: account,
resource: saved,
caller: caller,
@ -98,8 +100,6 @@ final class FeedlySyncStarredArticlesOperation: FeedlyOperation {
finalOperation.addDependency(syncSaved)
operationQueue.addOperations([syncSaved, finalOperation], waitUntilFinished: false)
os_log(.debug, log: log, "Syncing starred articles.")
}
}

View File

@ -41,7 +41,7 @@ final class FeedlyUpdateAccountFeedsWithItemsOperation: FeedlyOperation {
feedIDsAndItems[feed.feedID] = items
}
account.update(feedIDsAndItems: feedIDsAndItems, defaultRead: true) {
os_log(.debug, log: self.log, "Finished updating feeds in collection \"%@\"", self.organisedItemsProvider.providerName)
os_log(.debug, log: self.log, "Finished updating feeds for \"%@\"", self.organisedItemsProvider.providerName)
self.didFinish()
}
}