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