mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Show encoded log
Change-Id: I59a8c1506409097a1e8864b51051d969edaf2680
This commit is contained in:
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…
x
Reference in New Issue
Block a user