You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by gu...@apache.org on 2017/10/19 04:33:41 UTC

[38/50] [abbrv] incubator-weex git commit: * [android] if not debug level then write console log

* [android] if not debug level then write console log


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/db5b1e04
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/db5b1e04
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/db5b1e04

Branch: refs/heads/release
Commit: db5b1e0465b494ea937b381bed3b54aaea0b40ba
Parents: ac075c7
Author: atomtong <to...@qq.com>
Authored: Wed Oct 18 10:58:06 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 18 13:04:15 2017 +0800

----------------------------------------------------------------------
 .../sdk/src/main/java/com/taobao/weex/utils/WXLogUtils.java | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/db5b1e04/android/sdk/src/main/java/com/taobao/weex/utils/WXLogUtils.java
----------------------------------------------------------------------
diff --git a/android/sdk/src/main/java/com/taobao/weex/utils/WXLogUtils.java b/android/sdk/src/main/java/com/taobao/weex/utils/WXLogUtils.java
index a120ad6..1f5b4b2 100644
--- a/android/sdk/src/main/java/com/taobao/weex/utils/WXLogUtils.java
+++ b/android/sdk/src/main/java/com/taobao/weex/utils/WXLogUtils.java
@@ -78,10 +78,11 @@ public class WXLogUtils {
         Log.println(level.getPriority(),tag, msg);
       }
 
-      if(WXEnvironment.isApkDebugable()){
-        writeConsoleLog(level.getName(), msg);
-        sendLog(level, msg);
-      }
+      // if not debug level then print log
+      if(WXEnvironment.isApkDebugable() && !level.getName().equals("debug")){
+		writeConsoleLog(level.getName(), msg);
+		sendLog(level, msg);
+	  }
     }
   }