Browse Source

add debug

marinofaggiana 6 years ago
parent
commit
f07c9c24ce
1 changed files with 6 additions and 0 deletions
  1. 6 0
      iOSClient/Media/NCMedia.swift

+ 6 - 0
iOSClient/Media/NCMedia.swift

@@ -509,6 +509,12 @@ extension NCMedia {
     
     func search(lteDate: Date, gteDate: Date, addPast: Bool, setDistantPast: Bool) {
         
+        // ----- DEBUG -----
+        let dateFormatter = DateFormatter()
+        dateFormatter.dateFormat = "dd-MM-yyyy HH:mm"
+        print("[LOG] Search: addPast \(addPast), distantPass: \(setDistantPast), Lte: " + dateFormatter.string(from: lteDate) + " - Gte: " + dateFormatter.string(from: gteDate))
+        // -----------------
+        
         if appDelegate.activeAccount.count == 0 {
             return
         }