Skip to content

Commit

Permalink
signalmeow/attachments: log response headers for TUS uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Nov 14, 2024
1 parent 3c31749 commit b538f47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/signalmeow/attachments.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ func (cli *Client) uploadAttachmentTUS(
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).
Any("request_headers", uploadAttributes.Headers).
Any("response_headers", resp.Header).
Str("location", uploadAttributes.SignedUploadLocation).
Msg("TUS upload failed")
return fmt.Errorf("upload request returned HTTP %d", resp.StatusCode)
Expand Down

0 comments on commit b538f47

Please sign in to comment.