added failure logging to http download

This commit is contained in:
Daniel Gultsch 2020-01-19 11:36:26 +01:00
parent 99a98fe6c0
commit c62d5ebcb3
1 changed files with 1 additions and 5 deletions

View File

@ -173,10 +173,6 @@ public class HttpDownloadConnection implements Transferable {
if (!file.delete()) { if (!file.delete()) {
Log.w(Config.LOGTAG, "unable to delete temporary OMEMO encrypted file " + file.getAbsolutePath()); 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() { private void finish() {
@ -488,7 +484,7 @@ public class HttpDownloadConnection implements Transferable {
throw new FileWriterException(); throw new FileWriterException();
} }
} catch (CancellationException | IOException e) { } 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; throw e;
} finally { } finally {
FileBackend.close(os); FileBackend.close(os);