Skip to content

Commit

Permalink
Merge pull request cert-manager#97 from davidcollom/logging-fix
Browse files Browse the repository at this point in the history
Fix Logging issue where %s is presented
  • Loading branch information
cert-manager-prow[bot] authored Sep 19, 2024
2 parents 62bdc0e + 5fcfc47 commit a67ecbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ func shouldSync(log logr.Logger, route *routev1.Route) bool {
}

if metav1.HasAnnotation(route.ObjectMeta, cmapi.IssuerNameAnnotationKey) {
log.V(5).Info("Route has the annotation %s=%s", cmapi.IssuerNameAnnotationKey, route.Annotations[cmapi.IssuerNameAnnotationKey])
log.V(5).Info("Route has the annotation", "annotation-key", cmapi.IssuerNameAnnotationKey, "annotation-value", route.Annotations[cmapi.IssuerNameAnnotationKey])
return true
}

if metav1.HasAnnotation(route.ObjectMeta, cmapi.IngressIssuerNameAnnotationKey) {
log.V(5).Info("Route has the annotation %s=%s", cmapi.IngressIssuerNameAnnotationKey, route.Annotations[cmapi.IngressIssuerNameAnnotationKey])
log.V(5).Info("Route has the annotation", "annotation-key", cmapi.IngressIssuerNameAnnotationKey, "annotation-value", route.Annotations[cmapi.IngressIssuerNameAnnotationKey])
return true
}

Expand Down
2 changes: 1 addition & 1 deletion internal/controller/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (r *Route) sync(ctx context.Context, req reconcile.Request, route *routev1.
if err != nil {
return result, err
}
r.eventRecorder.Event(route, corev1.EventTypeNormal, ReasonIssuing, "Created new CertificateRequest for Route %s")
r.eventRecorder.Event(route, corev1.EventTypeNormal, ReasonIssuing, "Created new CertificateRequest")
return result, nil
}
// is the CR Ready and Approved?
Expand Down

0 comments on commit a67ecbe

Please sign in to comment.