diff --git a/pkg/signalmeow/attachments.go b/pkg/signalmeow/attachments.go index e8ffe0b4..8a4b6181 100644 --- a/pkg/signalmeow/attachments.go +++ b/pkg/signalmeow/attachments.go @@ -251,6 +251,10 @@ func (cli *Client) uploadAttachmentTUS( if err != nil { return fmt.Errorf("failed to send upload request: %w", err) } else if resp.StatusCode < 200 || resp.StatusCode >= 300 { + zerolog.Ctx(ctx).Debug(). + Any("headers", uploadAttributes.Headers). + Str("location", uploadAttributes.SignedUploadLocation). + Msg("TUS upload failed") return fmt.Errorf("upload request returned HTTP %d", resp.StatusCode) } return nil