Skip to content

Commit

Permalink
Log raw payload when uploading prekeys
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Mar 31, 2024
1 parent 6ab4669 commit eb8d98d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/signalmeow/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ func RegisterPreKeys(ctx context.Context, generatedPreKeys *GeneratedPreKeys, pn
log.Err(err).Msg("Error marshalling register JSON")
return err
}
log.Debug().RawJSON("request_data", jsonBytes).Msg("Registering prekeys")
opts := &web.HTTPReqOpt{Body: jsonBytes, Username: &username, Password: &password}
resp, err := web.SendHTTPRequest(ctx, http.MethodPut, keysPath(pni), opts)
if err != nil {
Expand Down

0 comments on commit eb8d98d

Please sign in to comment.