From ac52b7dbae013e928a2a3d7171ef934987b1ff40 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 27 Jun 2022 07:59:25 +0200 Subject: [PATCH] Improved logging --- app/src/main/java/javax/activation/DataHandler.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/javax/activation/DataHandler.java b/app/src/main/java/javax/activation/DataHandler.java index 5f9285a76b..81f4187c33 100644 --- a/app/src/main/java/javax/activation/DataHandler.java +++ b/app/src/main/java/javax/activation/DataHandler.java @@ -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); + } } } },