From c62d5ebcb33ba51cc89fd002f7652980a532a687 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sun, 19 Jan 2020 11:36:26 +0100 Subject: [PATCH] added failure logging to http download --- .../eu/siacs/conversations/http/HttpDownloadConnection.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java b/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java index 1ee08e244..3c1d31142 100644 --- a/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java +++ b/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java @@ -173,10 +173,6 @@ public class HttpDownloadConnection implements Transferable { if (!file.delete()) { Log.w(Config.LOGTAG, "unable to delete temporary OMEMO encrypted file " + file.getAbsolutePath()); } - - //TODO can this be skipped? - //message.setRelativeFilePath(outputFile.getPath()); - } private void finish() { @@ -488,7 +484,7 @@ public class HttpDownloadConnection implements Transferable { throw new FileWriterException(); } } catch (CancellationException | IOException e) { - Log.d(Config.LOGTAG, "http download failed " + e.getMessage()); + Log.d(Config.LOGTAG, message.getConversation().getAccount().getJid().asBareJid() + ": http download failed", e); throw e; } finally { FileBackend.close(os);