From 1838023c88cee6aa68859ef24227cd81bc47b7f2 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Tue, 31 May 2016 17:19:56 +0200 Subject: [PATCH] log failure reason in http upload on wrong response code --- .../java/eu/siacs/conversations/http/HttpUploadConnection.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java b/src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java index e337509b..87c6fc4a 100644 --- a/src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java +++ b/src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java @@ -215,6 +215,7 @@ public class HttpUploadConnection implements Transferable { mXmppConnectionService.resendMessage(message, delayed); } } else { + Log.d(Config.LOGTAG,"http upload failed because response code was "+code); fail(); } } catch (IOException e) {