Reduced logging

This commit is contained in:
M66B 2022-09-29 22:17:59 +02:00
parent 8edc9b0bd4
commit 636222b2f2
1 changed files with 5 additions and 3 deletions

View File

@ -3222,12 +3222,14 @@ public class MessageHelper {
m.append(content.getClass().getName());
String msg = "Expected " + h.contentType + " got " + m + " result=" + (result != null);
Log.e(msg);
warnings.add(msg);
if (result == null)
if (result == null) {
Log.e(msg);
warnings.add(msg);
result = Helper.readStream(h.part.getInputStream(),
cs == null ? StandardCharsets.ISO_8859_1 : cs);
} else
Log.w(msg);
}
} catch (DecodingException ex) {
Log.e(ex);