Improved logging

This commit is contained in:
M66B 2020-07-30 17:58:48 +02:00
parent 1514de704e
commit 6884780d03
1 changed files with 2 additions and 2 deletions

View File

@ -1986,7 +1986,7 @@ public class MessageHelper {
}
} else if (content instanceof String) {
String text = (String) content;
String sample = text.substring(0, Math.min(80, text.length()));
String sample = text.substring(0, Math.min(200, text.length()));
Log.e("Mixed string=" + sample);
} else
Log.e("Mixed type=" + (content == null ? null : content.getClass().getName()));
@ -2067,7 +2067,7 @@ public class MessageHelper {
multipart = (Multipart) part.getContent();
else if (content instanceof String) {
String text = (String) content;
String sample = text.substring(0, Math.min(80, text.length()));
String sample = text.substring(0, Math.min(200, text.length()));
throw new ParseException(content.getClass().getName() + ": " + sample);
} else
throw new ParseException(content.getClass().getName());