Improved logging

pull/208/head
M66B 3 years ago
parent a23f535bb9
commit ac52b7dbae

@ -253,7 +253,8 @@ public class DataHandler /*implements Transferable*/ {
throw new IOException(ex); 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()) + " object=" + (object == null ? null : object.getClass().getName()) +
" dch=" + dch.getClass().getName() + " dch=" + dch.getClass().getName() +
" type=" + getContentType()); " type=" + getContentType());
@ -274,11 +275,13 @@ public class DataHandler /*implements Transferable*/ {
try { try {
fdch.writeTo(object, objectMimeType, pos); fdch.writeTo(object, objectMimeType, pos);
} catch (IOException e) { } catch (IOException e) {
eu.faircode.email.Log.e(e);
} finally { } finally {
try { try {
pos.close(); pos.close();
} catch (IOException ie) { } } catch (IOException ie) {
eu.faircode.email.Log.e(ie);
}
} }
} }
}, },

Loading…
Cancel
Save