mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Improve logging around attachment compression failures.
This commit is contained in:
@@ -289,7 +289,7 @@ public class MessageSender {
|
||||
final long threadId,
|
||||
final SmsDatabase.InsertListener insertListener)
|
||||
{
|
||||
Log.i(TAG, "Sending media message with pre-uploads to " + message.getRecipient().getId() + ", thread: " + threadId);
|
||||
Log.i(TAG, "Sending media message with pre-uploads to " + message.getRecipient().getId() + ", thread: " + threadId + ", pre-uploads: " + preUploadResults);
|
||||
Preconditions.checkArgument(message.getAttachments().isEmpty(), "If the media is pre-uploaded, there should be no attachments on the message.");
|
||||
|
||||
try {
|
||||
@@ -807,6 +807,11 @@ public class MessageSender {
|
||||
ParcelUtil.writeStringCollection(dest, jobIds);
|
||||
dest.writeParcelable(media, flags);
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NonNull String toString() {
|
||||
return "{ID: " + attachmentId.getRowId() + ", URI: " + media.getUri() + ", Jobs: " + jobIds.stream().map(j -> "JOB::" + j).collect(Collectors.toList()) + "}";
|
||||
}
|
||||
}
|
||||
|
||||
public enum MessageSentEvent {
|
||||
|
||||
Reference in New Issue
Block a user