mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-15 07:28:30 +00:00
Add more internal logging around failed debuglogs uploads.
This commit is contained in:
committed by
Alex Hart
parent
9012a2afc0
commit
a36e2408f7
@@ -345,8 +345,9 @@ public class SubmitDebugLogRepository {
|
||||
try (Response postResponse = client.newCall(new Request.Builder().url(url).post(post.build()).build()).execute()) {
|
||||
if (!postResponse.isSuccessful()) {
|
||||
if (RemoteConfig.internalUser()) {
|
||||
Log.w(TAG, "Internal user failed to upload log: " + postResponse);
|
||||
Log.w(TAG, "Internal user failed to upload log: " + postResponse + ", body: " + postResponse.body().string());
|
||||
Log.w(TAG, "debuglogs.org response: " + json.toString(2));
|
||||
Log.w(TAG, "RequestBody length: " + requestBody.contentLength());
|
||||
}
|
||||
throw new IOException("Bad response: " + postResponse);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user