From e4c7ad30978bd26b8c77c94276ec88c566afdbc6 Mon Sep 17 00:00:00 2001 From: satok Date: Thu, 3 Jun 2010 20:55:42 +0900 Subject: [PATCH] Show encoded log Change-Id: I59a8c1506409097a1e8864b51051d969edaf2680 --- .../src/com/android/inputmethod/latin/LatinImeLogger.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/java/src/com/android/inputmethod/latin/LatinImeLogger.java b/java/src/com/android/inputmethod/latin/LatinImeLogger.java index ebcbcdbd9..83a791c13 100644 --- a/java/src/com/android/inputmethod/latin/LatinImeLogger.java +++ b/java/src/com/android/inputmethod/latin/LatinImeLogger.java @@ -555,12 +555,12 @@ public class LatinImeLogger implements SharedPreferences.OnSharedPreferenceChang ByteArrayOutputStream baos = new ByteArrayOutputStream(); PrintStream ps = new PrintStream(baos); e.printStackTrace(ps); - String exceptionString = new String(baos.toByteArray(), 0, - Math.min(EXCEPTION_MAX_LENGTH, baos.size())); + String exceptionString = URLEncoder.encode(new String(baos.toByteArray(), 0, + Math.min(EXCEPTION_MAX_LENGTH, baos.size()))); sLatinImeLogger.sendLogToDropBox( - ID_EXCEPTION, new String[] {metaData, URLEncoder.encode(exceptionString)}); + ID_EXCEPTION, new String[] {metaData, exceptionString}); if (sDBG) { - Log.e(TAG, "Exception: " + new String(baos.toByteArray())); + Log.e(TAG, "Exception: " + new String(baos.toByteArray())+ ":" + exceptionString); } if (SUPPRESS_EXCEPTION) { sLatinImeLogger.commitInternalAndStopSelf();