Skip to content

Commit 533c6a2

Browse files
authored
CA: Log error instead of cert upon storage failure (#8528)
This seems to be a simple copy-paste error. The cert has already been audit-logged by the time we reach this point, so just log the error.
1 parent e0ef9a3 commit 533c6a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ca/ca.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ func (ca *certificateAuthorityImpl) IssueCertificate(ctx context.Context, req *c
450450
Issued: timestamppb.New(ca.clk.Now()),
451451
})
452452
if err != nil {
453-
ca.log.AuditErrf("Failed RPC to store at SA: serial=[%s] err=[%v]", serialHex, hex.EncodeToString(certDER))
453+
ca.log.AuditErrf("Failed RPC to store at SA: serial=[%s] err=[%v]", serialHex, err)
454454
return nil, fmt.Errorf("persisting cert to database: %w", err)
455455
}
456456

0 commit comments

Comments
 (0)