1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 17:57:16 +00:00

Improved logging

This commit is contained in:
M66B 2022-06-27 07:59:25 +02:00
parent a23f535bb9
commit ac52b7dbae

View file

@ -253,7 +253,8 @@ public class DataHandler /*implements Transferable*/ {
throw new IOException(ex);
}
eu.faircode.email.Log.w("DataHandler" +
// com.sun.mail.smtp.SMTPTransport.convertTo8Bit
eu.faircode.email.Log.i("DataHandler" +
" object=" + (object == null ? null : object.getClass().getName()) +
" dch=" + dch.getClass().getName() +
" type=" + getContentType());
@ -274,11 +275,13 @@ public class DataHandler /*implements Transferable*/ {
try {
fdch.writeTo(object, objectMimeType, pos);
} catch (IOException e) {
eu.faircode.email.Log.e(e);
} finally {
try {
pos.close();
} catch (IOException ie) { }
} catch (IOException ie) {
eu.faircode.email.Log.e(ie);
}
}
}
},