weex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From guris...@apache.org
Subject [12/20] incubator-weex git commit: delete debug condition
Date Mon, 02 Oct 2017 02:53:59 GMT
delete debug condition


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

Branch: refs/heads/master
Commit: 707605e1f6f95656eda77106a7361095f31802b9
Parents: b3d96fe
Author: 御魂 <wentao.swt@alibaba-inc.com>
Authored: Thu Sep 28 16:57:08 2017 +0800
Committer: gurisxie <279483595@qq.com>
Committed: Sun Oct 1 11:09:19 2017 +0800

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


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/707605e1/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 c4e4b96..1f2b4b1 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
@@ -114,6 +114,10 @@ public class WXLogUtils {
   }
 
   public static void d(String tag, String msg) {
+    if (!TextUtils.isEmpty(msg) && !TextUtils.isEmpty(tag)) {
+      log(tag, msg, LogLevel.DEBUG);
+    }
+
     if (WXEnvironment.isApkDebugable() && !TextUtils.isEmpty(msg) && WXEnvironment.sLogLevel.compare(LogLevel.DEBUG)
>= 0) {
       Log.d(tag, msg);
 


Mime
View raw message