浏览代码

add DEBUG

marinofaggiana 6 年之前
父节点
当前提交
8a578812ba
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      iOSClient/Media/NCMedia.swift

+ 2 - 0
iOSClient/Media/NCMedia.swift

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