From 18c73cc84d6c946be6a86e33adea7187be71de30 Mon Sep 17 00:00:00 2001 From: Marino Faggiana Date: Sat, 30 Sep 2023 12:21:24 +0200 Subject: [PATCH] Add LOG info Signed-off-by: Marino Faggiana --- iOSClient/Favorites/NCFavorite.swift | 2 ++ iOSClient/Files/NCFiles.swift | 3 +++ iOSClient/Groupfolders/NCGroupfolders.swift | 2 ++ iOSClient/Networking/NCService.swift | 2 ++ iOSClient/Offline/NCOffline.swift | 2 ++ iOSClient/Recent/NCRecent.swift | 2 ++ iOSClient/Shares/NCShares.swift | 2 ++ 7 files changed, 15 insertions(+) diff --git a/iOSClient/Favorites/NCFavorite.swift b/iOSClient/Favorites/NCFavorite.swift index 7f30728503..6a3ded859b 100644 --- a/iOSClient/Favorites/NCFavorite.swift +++ b/iOSClient/Favorites/NCFavorite.swift @@ -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() diff --git a/iOSClient/Files/NCFiles.swift b/iOSClient/Files/NCFiles.swift index 8d6a9652f3..5005d5e888 100644 --- a/iOSClient/Files/NCFiles.swift +++ b/iOSClient/Files/NCFiles.swift @@ -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() diff --git a/iOSClient/Groupfolders/NCGroupfolders.swift b/iOSClient/Groupfolders/NCGroupfolders.swift index 00899eb89b..5539a00302 100644 --- a/iOSClient/Groupfolders/NCGroupfolders.swift +++ b/iOSClient/Groupfolders/NCGroupfolders.swift @@ -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() diff --git a/iOSClient/Networking/NCService.swift b/iOSClient/Networking/NCService.swift index cb29d1f31e..908d1c9384 100644 --- a/iOSClient/Networking/NCService.swift +++ b/iOSClient/Networking/NCService.swift @@ -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) } diff --git a/iOSClient/Offline/NCOffline.swift b/iOSClient/Offline/NCOffline.swift index c513289d9d..e0c5a2b8cb 100644 --- a/iOSClient/Offline/NCOffline.swift +++ b/iOSClient/Offline/NCOffline.swift @@ -102,6 +102,8 @@ class NCOffline: NCCollectionViewCommon { return } + NextcloudKit.shared.nkCommonInstance.writeLog("[INFO] Reload data source network offline forced \(isForced)") + isReloadDataSourceNetworkInProgress = true collectionView?.reloadData() diff --git a/iOSClient/Recent/NCRecent.swift b/iOSClient/Recent/NCRecent.swift index 2a3a30a199..5f3a166adf 100644 --- a/iOSClient/Recent/NCRecent.swift +++ b/iOSClient/Recent/NCRecent.swift @@ -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() diff --git a/iOSClient/Shares/NCShares.swift b/iOSClient/Shares/NCShares.swift index e854ff267c..3e66352482 100644 --- a/iOSClient/Shares/NCShares.swift +++ b/iOSClient/Shares/NCShares.swift @@ -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()