Skip to content

Commit

Permalink
snp/validate: log error
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <[email protected]>
  • Loading branch information
katexochen committed Aug 21, 2024
1 parent 8c7da2c commit f6eefb7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/attestation/snp/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ func (v *Validator) OID() asn1.ObjectIdentifier {
// Validate a TPM based attestation.
func (v *Validator) Validate(ctx context.Context, attDocRaw []byte, nonce []byte, peerPublicKey []byte) (err error) {
v.logger.Info("Validate called", "nonce", hex.EncodeToString(nonce))
defer func() {
if err != nil {
v.logger.Error("Validate to verify attestation report", "err", err)
}
}()

// Parse the attestation document.

Expand Down

0 comments on commit f6eefb7

Please sign in to comment.