diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2015-07-28 22:26:29 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2015-07-28 22:26:29 +0200 |
commit | 8924c448d19d44a3a4a6f09a76d2e09130f22f87 (patch) | |
tree | 7f9ecccf2fedbee25f75d9de11b7d0ca9a23f703 /src | |
parent | 6b8e1ecb9532509ac6bca6ca3665f6ac3f560332 (diff) |
changed logging. (work around logcat null pointer
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java | 2 | ||||
-rw-r--r-- | src/main/java/eu/siacs/conversations/utils/DNSHelper.java | 1 |
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 c25bf13a2..c9fb3d8c5 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 60e1f0beb..4d0dd3dab 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; |