瀏覽代碼

Add LOG info

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 1 年之前
父節點
當前提交
18c73cc84d

+ 2 - 0
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()
 

+ 3 - 0
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()
 

+ 2 - 0
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()
 

+ 2 - 0
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)
     }

+ 2 - 0
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()
 

+ 2 - 0
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()
 

+ 2 - 0
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()