diff --git a/internal/attestation/snp/validator.go b/internal/attestation/snp/validator.go index 51ddf5e2b2..c1df4fd0fa 100644 --- a/internal/attestation/snp/validator.go +++ b/internal/attestation/snp/validator.go @@ -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.