Improved logging

This commit is contained in:
M66B 2021-10-31 07:50:03 +01:00
parent 66eebf4083
commit cc41a2a4b7
1 changed files with 5 additions and 3 deletions

View File

@ -2748,7 +2748,7 @@ public class MessageHelper {
return parts;
} else {
StringBuilder sb = new StringBuilder();
sb.append(ct);
sb.append(ct).append(" parts=").append(multipart.getCount()).append("/2");
for (int i = 0; i < multipart.getCount(); i++)
sb.append(' ').append(i).append('=').append(multipart.getBodyPart(i).getContentType());
Log.e(sb.toString());
@ -2770,7 +2770,7 @@ public class MessageHelper {
return parts;
} else {
StringBuilder sb = new StringBuilder();
sb.append(ct);
sb.append(ct).append(" parts=").append(multipart.getCount()).append("/2");
for (int i = 0; i < multipart.getCount(); i++)
sb.append(' ').append(i).append('=').append(multipart.getBodyPart(i).getContentType());
Log.e(sb.toString());
@ -2802,7 +2802,9 @@ public class MessageHelper {
return parts;
}
}
Log.e(ct.toString());
StringBuilder sb = new StringBuilder();
sb.append("Unexpected smime-type=").append(ct);
Log.e(sb.toString());
}
}
} catch (ParseException ex) {