Skip to content

Commit

Permalink
feat: add info log in msg received
Browse files Browse the repository at this point in the history
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
  • Loading branch information
LaurentMontBlanc committed May 10, 2024
1 parent 60ec8ee commit c3aff0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions service/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ func (s *TAAService) createAccount(c *gin.Context) {
return
}

s.logger.Info("msg", "create-account request received", "machineID", requestBody.MachineID, "signature", requestBody.Signature, "plmntAddress", requestBody.PlmntAddress)

// verify machine ID validity
isValidSecp256r1, errR1 := signature.ValidateSECP256R1Signature(requestBody.MachineID, requestBody.Signature, requestBody.MachineID)
if errR1 != nil || !isValidSecp256r1 {
Expand Down

0 comments on commit c3aff0e

Please sign in to comment.