Add logging for htmlToSpan
Add logging for htmlToSpan to check the length
of input/output.
b/16489004
Change-Id: I40e0ea1f1b4799a2d021f42dc98bcef54f6e3aff
diff --git a/src/com/android/mail/utils/HtmlUtils.java b/src/com/android/mail/utils/HtmlUtils.java
index 1055757..216cf40 100644
--- a/src/com/android/mail/utils/HtmlUtils.java
+++ b/src/com/android/mail/utils/HtmlUtils.java
@@ -40,6 +40,8 @@
public class HtmlUtils {
+ static final String LOG_TAG = LogTag.getLogTag();
+
/**
* Use our custom SpannedConverter to process the HtmlNode results from HtmlTree.
* @param html
@@ -53,6 +55,8 @@
final Spanned spanned = htmlTree.getSpanned();
AnalyticsTimer.getInstance().logDuration(AnalyticsTimer.COMPOSE_HTML_TO_SPAN, true,
"compose", "html_to_span", null);
+ LogUtils.v(LOG_TAG, "htmlToSpan completed, input: %d, result: %d", html.length(),
+ spanned.length());
return spanned;
}