Fix logging crash

If the string contains a character that is intrepreted by the
string formatter, this would throw an exception

Change-Id: I60cccb539bf197fa555d8d1f0fa1bdca3e07114e
This commit is contained in:
Paul Westbrook 2013-06-06 17:20:52 -07:00
parent 555bd3c0b7
commit 5a3fe57f4e

View File

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