* [android] release log analyse logwatcher

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

Branch: refs/heads/master
Commit: 7efcc19320afb48dc2a66aaf4d871719671f3885
Parents: 8a19b9b
Author: atomtong <tong_huab...@qq.com>
Authored: Fri Nov 10 21:03:27 2017 +0800
Committer: atomtong <tong_huab...@qq.com>
Committed: Fri Nov 10 21:03:27 2017 +0800

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


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/7efcc193/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 af20f22..78b3dbf 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
@@ -124,6 +124,12 @@ public class WXLogUtils {
 
   public static void d(String tag, String msg) {
 
+       if(!WXEnvironment.isApkDebugable() && !TextUtils.isEmpty(msg)){
+         if(sLogWatcher != null){//sLogWatcher designed to track analyse log
+               log(tag, msg, LogLevel.DEBUG);
+         }
+       }
+
     if (WXEnvironment.isApkDebugable() && !TextUtils.isEmpty(msg) && 
WXEnvironment.sLogLevel.compare(LogLevel.DEBUG) >= 0) {
       if ("jsLog".equals(tag) && jsLogWatcher != null) {
         if (msg.endsWith("__DEBUG")) {

Reply via email to