diff --git a/internal/ingress/annotations/parser/validators.go b/internal/ingress/annotations/parser/validators.go index 3c724a3110..5a4e09aadd 100644 --- a/internal/ingress/annotations/parser/validators.go +++ b/internal/ingress/annotations/parser/validators.go @@ -240,7 +240,7 @@ func checkAnnotation(name string, ing *networking.Ingress, fields AnnotationFiel // We don't run validation against empty values if EnableAnnotationValidation && annotationValue != "" { if err := validateFunc(annotationValue); err != nil { - klog.Warningf("validation error on ingress %s/%s: annotation %s contains invalid value %s", ing.GetNamespace(), ing.GetName(), name, annotationValue) + klog.Warningf("validation error on ingress %s/%s: annotation %s contains invalid value %s. err: %s", ing.GetNamespace(), ing.GetName(), name, annotationValue, err) return "", ing_errors.NewValidationError(annotationFullName) } }