浏览代码

added debug output

Luke Owncloud 10 年之前
父节点
当前提交
7d2f573f6d
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6 4
      src/com/owncloud/android/files/FileOperationsHelper.java

+ 6 - 4
src/com/owncloud/android/files/FileOperationsHelper.java

@@ -263,15 +263,17 @@ public class FileOperationsHelper {
 
                 downloaderBinder.cancel(account, file);
             } else {
-                Log_OC.w(TAG, "Download for " + file + " not in progress. Cannot cancel.");
+                Log_OC.d(TAG, "Download for " + file + " not in progress. Cannot cancel.");
             }
-        } else if (uploaderBinder != null) {
+        } 
+        if (uploaderBinder != null) {
             if (uploaderBinder.isUploading(account, file)) {
                 uploaderBinder.cancel(account, file);
             } else {
-                Log_OC.w(TAG, "Upload for " + file + " not in progress. Cannot cancel.");
+                Log_OC.d(TAG, "Upload for " + file + " not in progress. Cannot cancel.");
             }
-        } else {
+        } 
+        if(downloaderBinder == null && uploaderBinder == null) {
             Log_OC.w(TAG, "Neither downloaderBinder nor uploaderBinder set. Cannot cancel.");            
         }
     }