incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [5/14] android commit: Disable debug logging of loadUrl for javascript URLs.
Date Tue, 18 Sep 2012 17:52:51 GMT
Disable debug logging of loadUrl for javascript URLs.

When using LOAD_URL bridge mode, this is far too verbose.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/commit/9c0e58df
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/9c0e58df
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/9c0e58df

Branch: refs/heads/master
Commit: 9c0e58df8d0d1788bae9ded00701c086fd549ed3
Parents: ee34f11
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Tue Sep 11 10:21:07 2012 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue Sep 18 13:24:37 2012 -0400

----------------------------------------------------------------------
 .../src/org/apache/cordova/CordovaWebView.java     |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/9c0e58df/framework/src/org/apache/cordova/CordovaWebView.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CordovaWebView.java b/framework/src/org/apache/cordova/CordovaWebView.java
index 569ce01..53640b8 100755
--- a/framework/src/org/apache/cordova/CordovaWebView.java
+++ b/framework/src/org/apache/cordova/CordovaWebView.java
@@ -477,7 +477,9 @@ public class CordovaWebView extends WebView {
      * @param url
      */
     void loadUrlNow(String url) {
-        LOG.d(TAG, ">>> loadUrlNow()");
+        if (LOG.isLoggable(LOG.DEBUG) && !url.startsWith("javascript:")) {
+            LOG.d(TAG, ">>> loadUrlNow()");
+        }
         super.loadUrl(url);
     }
 


Mime
View raw message