diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-05-05 19:34:44 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-05-05 19:34:44 +0200 |
commit | 0157039e87f5843189641aab2e6f827dcd4d0051 (patch) | |
tree | 2415349e79175ce2e1a6a60963c3c158a695c1c0 /src/main/java/eu/siacs/conversations/persistance | |
parent | 6e0ec9b924173bd2afe3b87646e3b1f4e907b7c1 (diff) |
log more information about HTTP’s max upload size
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/persistance/FileBackend.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/persistance/FileBackend.java b/src/main/java/eu/siacs/conversations/persistance/FileBackend.java index df510efe8..db48c8b3d 100644 --- a/src/main/java/eu/siacs/conversations/persistance/FileBackend.java +++ b/src/main/java/eu/siacs/conversations/persistance/FileBackend.java @@ -134,10 +134,12 @@ public class FileBackend { public static boolean allFilesUnderSize(Context context, List<Uri> uris, long max) { if (max <= 0) { + Log.d(Config.LOGTAG,"server did not report max file size for http upload"); return true; //exception to be compatible with HTTP Upload < v0.2 } for(Uri uri : uris) { if (FileBackend.getFileSize(context, uri) > max) { + Log.d(Config.LOGTAG,"not all files are under "+max+" bytes. suggesting falling back to jingle"); return false; } } |