mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 18:27:43 +00:00
Reduced logging
This commit is contained in:
parent
8edc9b0bd4
commit
636222b2f2
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue