1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 18:27:43 +00:00

Reduced logging

This commit is contained in:
M66B 2022-09-29 22:17:59 +02:00
parent 8edc9b0bd4
commit 636222b2f2

View file

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