浏览代码

add debug

marinofaggiana 6 年之前
父节点
当前提交
f07c9c24ce
共有 1 个文件被更改,包括 6 次插入0 次删除
  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) {
     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 {
         if appDelegate.activeAccount.count == 0 {
             return
             return
         }
         }