mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-11 22:53:16 +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);
|
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…
Add table
Reference in a new issue