added failure logging to http download
This commit is contained in:
parent
99a98fe6c0
commit
c62d5ebcb3
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue