Add more internal logging around failed debuglogs uploads.

This commit is contained in:
Greyson Parrelli
2026-01-20 10:03:56 -05:00
committed by Alex Hart
parent 9012a2afc0
commit a36e2408f7

View File

@@ -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);
}