parent
0f97599f1a
commit
e4c7ad3097
|
@ -555,12 +555,12 @@ public class LatinImeLogger implements SharedPreferences.OnSharedPreferenceChang
|
||||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||||
PrintStream ps = new PrintStream(baos);
|
PrintStream ps = new PrintStream(baos);
|
||||||
e.printStackTrace(ps);
|
e.printStackTrace(ps);
|
||||||
String exceptionString = new String(baos.toByteArray(), 0,
|
String exceptionString = URLEncoder.encode(new String(baos.toByteArray(), 0,
|
||||||
Math.min(EXCEPTION_MAX_LENGTH, baos.size()));
|
Math.min(EXCEPTION_MAX_LENGTH, baos.size())));
|
||||||
sLatinImeLogger.sendLogToDropBox(
|
sLatinImeLogger.sendLogToDropBox(
|
||||||
ID_EXCEPTION, new String[] {metaData, URLEncoder.encode(exceptionString)});
|
ID_EXCEPTION, new String[] {metaData, exceptionString});
|
||||||
if (sDBG) {
|
if (sDBG) {
|
||||||
Log.e(TAG, "Exception: " + new String(baos.toByteArray()));
|
Log.e(TAG, "Exception: " + new String(baos.toByteArray())+ ":" + exceptionString);
|
||||||
}
|
}
|
||||||
if (SUPPRESS_EXCEPTION) {
|
if (SUPPRESS_EXCEPTION) {
|
||||||
sLatinImeLogger.commitInternalAndStopSelf();
|
sLatinImeLogger.commitInternalAndStopSelf();
|
||||||
|
|
Loading…
Reference in New Issue