aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2015-07-28 22:26:29 +0200
committerDaniel Gultsch <daniel@gultsch.de>2015-07-28 22:26:29 +0200
commit8924c448d19d44a3a4a6f09a76d2e09130f22f87 (patch)
tree7f9ecccf2fedbee25f75d9de11b7d0ca9a23f703 /src
parent6b8e1ecb9532509ac6bca6ca3665f6ac3f560332 (diff)
changed logging. (work around logcat null pointer
Diffstat (limited to 'src')
-rw-r--r--src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java2
-rw-r--r--src/main/java/eu/siacs/conversations/utils/DNSHelper.java1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java b/src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java
index c25bf13a..c9fb3d8c 100644
--- a/src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java
+++ b/src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java
@@ -194,7 +194,7 @@ public class HttpUploadConnection implements Transferable {
fail();
}
} catch (IOException e) {
- Log.d(Config.LOGTAG, e.getMessage());
+ Log.d(Config.LOGTAG,"http upload failed "+e.getMessage());
fail();
} finally {
FileBackend.close(is);
diff --git a/src/main/java/eu/siacs/conversations/utils/DNSHelper.java b/src/main/java/eu/siacs/conversations/utils/DNSHelper.java
index 60e1f0be..4d0dd3da 100644
--- a/src/main/java/eu/siacs/conversations/utils/DNSHelper.java
+++ b/src/main/java/eu/siacs/conversations/utils/DNSHelper.java
@@ -129,7 +129,6 @@ public class DNSHelper {
} catch (SocketTimeoutException e) {
bundle.putString("error", "timeout");
} catch (Exception e) {
- e.printStackTrace();
bundle.putString("error", "unhandled");
}
return bundle;