Skip to content

Commit

Permalink
Add LOG info
Browse files Browse the repository at this point in the history
Signed-off-by: Marino Faggiana <[email protected]>
  • Loading branch information
marinofaggiana committed Sep 30, 2023
1 parent be5d22b commit 18c73cc
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iOSClient/Favorites/NCFavorite.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ class NCFavorite: NCCollectionViewCommon {
override func reloadDataSourceNetwork(isForced: Bool = false) {
super.reloadDataSourceNetwork(isForced: isForced)

NextcloudKit.shared.nkCommonInstance.writeLog("[INFO] Reload data source network favorite forced \(isForced)")

isReloadDataSourceNetworkInProgress = true
collectionView?.reloadData()

Expand Down
3 changes: 3 additions & 0 deletions iOSClient/Files/NCFiles.swift
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ class NCFiles: NCCollectionViewCommon {
networkSearch()
return
}

NextcloudKit.shared.nkCommonInstance.writeLog("[INFO] Reload data source network files forced \(isForced)")

isReloadDataSourceNetworkInProgress = true
collectionView?.reloadData()

Expand Down
2 changes: 2 additions & 0 deletions iOSClient/Groupfolders/NCGroupfolders.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ class NCGroupfolders: NCCollectionViewCommon {
override func reloadDataSourceNetwork(isForced: Bool = false) {
super.reloadDataSourceNetwork(isForced: isForced)

NextcloudKit.shared.nkCommonInstance.writeLog("[INFO] Reload data source network groupfolders forced \(isForced)")

isReloadDataSourceNetworkInProgress = true
collectionView?.reloadData()

Expand Down
2 changes: 2 additions & 0 deletions iOSClient/Networking/NCService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ class NCService: NSObject {

func synchronize() {

NextcloudKit.shared.nkCommonInstance.writeLog("[INFO] start synchronize")

NCNetworking.shared.listingFavoritescompletion(selector: NCGlobal.shared.selectorReadFile) { _, _, _ in }
self.synchronizeOffline(account: appDelegate.account)
}
Expand Down
2 changes: 2 additions & 0 deletions iOSClient/Offline/NCOffline.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ class NCOffline: NCCollectionViewCommon {
return
}

NextcloudKit.shared.nkCommonInstance.writeLog("[INFO] Reload data source network offline forced \(isForced)")

isReloadDataSourceNetworkInProgress = true
collectionView?.reloadData()

Expand Down
2 changes: 2 additions & 0 deletions iOSClient/Recent/NCRecent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ class NCRecent: NCCollectionViewCommon {
let lessDateString = dateFormatter.string(from: Date())
let requestBody = String(format: requestBodyRecent, "/files/" + appDelegate.userId, lessDateString)

NextcloudKit.shared.nkCommonInstance.writeLog("[INFO] Reload data source network recent forced \(isForced)")

isReloadDataSourceNetworkInProgress = true
collectionView?.reloadData()

Expand Down
2 changes: 2 additions & 0 deletions iOSClient/Shares/NCShares.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ class NCShares: NCCollectionViewCommon {
override func reloadDataSourceNetwork(isForced: Bool = false) {
super.reloadDataSourceNetwork(isForced: isForced)

NextcloudKit.shared.nkCommonInstance.writeLog("[INFO] Reload data source network shares forced \(isForced)")

isReloadDataSourceNetworkInProgress = true
collectionView?.reloadData()

Expand Down

0 comments on commit 18c73cc

Please sign in to comment.