Improved logging

pull/184/head
M66B 4 years ago
parent 1514de704e
commit 6884780d03

@ -1986,7 +1986,7 @@ public class MessageHelper {
} }
} else if (content instanceof String) { } else if (content instanceof String) {
String text = (String) content; 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); Log.e("Mixed string=" + sample);
} else } else
Log.e("Mixed type=" + (content == null ? null : content.getClass().getName())); Log.e("Mixed type=" + (content == null ? null : content.getClass().getName()));
@ -2067,7 +2067,7 @@ public class MessageHelper {
multipart = (Multipart) part.getContent(); multipart = (Multipart) part.getContent();
else if (content instanceof String) { else if (content instanceof String) {
String text = (String) content; 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); throw new ParseException(content.getClass().getName() + ": " + sample);
} else } else
throw new ParseException(content.getClass().getName()); throw new ParseException(content.getClass().getName());

Loading…
Cancel
Save