Show encoded log

Change-Id: I59a8c1506409097a1e8864b51051d969edaf2680
main
satok 2010-06-03 20:55:42 +09:00
parent 0f97599f1a
commit e4c7ad3097
1 changed files with 4 additions and 4 deletions

View File

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