Skip to content

Commit

Permalink
operator: Set correct level for log in ingressClassManager
Browse files Browse the repository at this point in the history
The ingressClassManager emits a warning log while handling an Upsert
event on IngressClasses, however, this log should be at the debug level.

This log was set to the warning level while testing cilium#28663 and never
changed back to debug.

Signed-off-by: Ryan Drew <ryan.drew@isovalent.com>
  • Loading branch information
learnitall committed Nov 3, 2023
1 parent a48bce8 commit 2567adf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion operator/pkg/ingress/ingress_class.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (i *ingressClassManager) handleSyncEvent() error {
// If an error is returned, then the IngressClass contained in the event should be retried at a later
// point in time.
func (i *ingressClassManager) handleUpsertEvent(event resource.Event[*slim_networkingv1.IngressClass]) error {
log.WithField(logfields.IngressClass, event.Object).Warn("Handling IngressClass Upsert event")
log.WithField(logfields.IngressClass, event.Object).Debug("Handling IngressClass Upsert event")

if event.Object == nil || !isIngressClassCilium(event.Object) {
return nil
Expand Down

0 comments on commit 2567adf

Please sign in to comment.