From 5a3fe57f4e13125a050948a7a5abf629f431f60b Mon Sep 17 00:00:00 2001 From: Paul Westbrook Date: Thu, 6 Jun 2013 17:20:52 -0700 Subject: [PATCH] Fix logging crash If the string contains a character that is intrepreted by the string formatter, this would throw an exception Change-Id: I60cccb539bf197fa555d8d1f0fa1bdca3e07114e --- src/com/android/email/mail/transport/DiscourseLogger.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/email/mail/transport/DiscourseLogger.java b/src/com/android/email/mail/transport/DiscourseLogger.java index 60e856963..67f4e115b 100644 --- a/src/com/android/email/mail/transport/DiscourseLogger.java +++ b/src/com/android/email/mail/transport/DiscourseLogger.java @@ -112,7 +112,7 @@ public class DiscourseLogger { LogUtils.w(Logging.LOG_TAG, "Last network activities:"); for (String r : getLines()) { - LogUtils.w(Logging.LOG_TAG, r); + LogUtils.w(Logging.LOG_TAG, "%s", r); } initBuffer(); }