Merge pull request #6 from redbaron/errors-format-fix

Fix error formatting
This commit is contained in:
James Munnelly 2018-04-11 13:18:45 +01:00 committed by GitHub
commit 967499331e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,9 +236,9 @@ func (c *Controller) updateSecret(crt *v1alpha1.Certificate, namespace string, c
// and private key will be stored in the named secret // and private key will be stored in the named secret
func (c *Controller) issue(ctx context.Context, issuer issuer.Interface, crt *v1alpha1.Certificate) error { func (c *Controller) issue(ctx context.Context, issuer issuer.Interface, crt *v1alpha1.Certificate) error {
var err error var err error
glog.Info("Preparing certificate %s/%s with issuer", crt.Namespace, crt.Name) glog.Infof("Preparing certificate %s/%s with issuer", crt.Namespace, crt.Name)
if err = issuer.Prepare(ctx, crt); err != nil { if err = issuer.Prepare(ctx, crt); err != nil {
glog.Info("Error preparing issuer for certificate %s/%s: %v", crt.Namespace, crt.Name, err) glog.Infof("Error preparing issuer for certificate %s/%s: %v", crt.Namespace, crt.Name, err)
return err return err
} }
@ -274,9 +274,9 @@ func (c *Controller) issue(ctx context.Context, issuer issuer.Interface, crt *v1
// and private key will be stored in the named secret // and private key will be stored in the named secret
func (c *Controller) renew(ctx context.Context, issuer issuer.Interface, crt *v1alpha1.Certificate) error { func (c *Controller) renew(ctx context.Context, issuer issuer.Interface, crt *v1alpha1.Certificate) error {
var err error var err error
glog.Info("Preparing certificate %s/%s with issuer", crt.Namespace, crt.Name) glog.Infof("Preparing certificate %s/%s with issuer", crt.Namespace, crt.Name)
if err = issuer.Prepare(ctx, crt); err != nil { if err = issuer.Prepare(ctx, crt); err != nil {
glog.Info("Error preparing issuer for certificate %s/%s: %v", crt.Namespace, crt.Name, err) glog.Infof("Error preparing issuer for certificate %s/%s: %v", crt.Namespace, crt.Name, err)
return err return err
} }