Disable debug logging of loadUrl for javascript URLs.

When using LOAD_URL bridge mode, this is far too verbose.
This commit is contained in:
Andrew Grieve 2012-09-11 10:21:07 -04:00
parent ee34f11c29
commit 9c0e58df8d

View File

@ -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);
}