code: func (ra *RegistrationAuthorityImpl) issueCertificate(
  	ctx context.Context,
  	req core.CertificateRequest,
  	acctID accountID,
  	oID orderID) (core.Certificate, error) {
  	// Construct the log event
  	logEvent := certificateRequestEvent{
  		ID:          core.NewToken(),
  		OrderID:     int64(oID),
  		Requester:   int64(acctID),
  		RequestTime: ra.clk.Now(),
  	}
  	var result string
  	cert, err := ra.issueCertificateInner(ctx, req, acctID, oID, &logEvent)
  	if err != nil {
  		logEvent.Error = err.Error()
  		result = "error"
  	} else {
  		result = "successful"
  	}
  	logEvent.ResponseTime = ra.clk.Now()
  	ra.log.AuditObject(fmt.Sprintf("Certificate request - %s", result), logEvent)
  	return cert, err
  }
docs: // issueCertificate sets up a log event structure and captures any errors
  // encountered during issuance, then calls issueCertificateInner.