added failure logging to http download

Daniel Gultsch created

Change summary

src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java | 6 
1 file changed, 1 insertion(+), 5 deletions(-)

Detailed changes

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);