fix reduce log spam on errors
Bug: 5415103
Excluding common error cases from logging.
Change-Id: Id573ccb8563d3e7d8fb6ff76cd803447731c81a3
diff --git a/src/com/android/browser/Tab.java b/src/com/android/browser/Tab.java
index 839280e..3d90ab6 100644
--- a/src/com/android/browser/Tab.java
+++ b/src/com/android/browser/Tab.java
@@ -685,12 +685,12 @@
errorCode != WebViewClient.ERROR_UNSUPPORTED_SCHEME &&
errorCode != WebViewClient.ERROR_FILE) {
queueError(errorCode, description);
- }
- // Don't log URLs when in private browsing mode
- if (!isPrivateBrowsingEnabled()) {
- Log.e(LOGTAG, "onReceivedError " + errorCode + " " + failingUrl
+ // Don't log URLs when in private browsing mode
+ if (!isPrivateBrowsingEnabled()) {
+ Log.e(LOGTAG, "onReceivedError " + errorCode + " " + failingUrl
+ " " + description);
+ }
}
}