From 33f279f9bb7caa57c9154b6e2552266abb427267 Mon Sep 17 00:00:00 2001 From: Sascha Schwarze Date: Sun, 4 Apr 2021 10:38:39 +0200 Subject: [PATCH] Add missing log labels --- pkg/validate/sourceurl.go | 2 +- pkg/validate/strategies.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/validate/sourceurl.go b/pkg/validate/sourceurl.go index 8732680793..5a5cabd820 100644 --- a/pkg/validate/sourceurl.go +++ b/pkg/validate/sourceurl.go @@ -34,7 +34,7 @@ func (s SourceURLRef) ValidatePath(ctx context.Context) error { } return err case "", "false": - ctxlog.Info(ctx, fmt.Sprintf("the annotation %s is set to %s, nothing to do", build.AnnotationBuildVerifyRepository, s.Build.GetAnnotations()[build.AnnotationBuildVerifyRepository])) + ctxlog.Info(ctx, fmt.Sprintf("the annotation %s is set to %s, nothing to do", build.AnnotationBuildVerifyRepository, s.Build.GetAnnotations()[build.AnnotationBuildVerifyRepository]), namespace, s.Build.Namespace, name, s.Build.Name) return nil default: var annoErr = fmt.Errorf("the annotation %s was not properly defined, supported values are true or false", build.AnnotationBuildVerifyRepository) diff --git a/pkg/validate/strategies.go b/pkg/validate/strategies.go index eaf99fe5bd..663058e199 100644 --- a/pkg/validate/strategies.go +++ b/pkg/validate/strategies.go @@ -41,7 +41,7 @@ func (s Strategy) ValidatePath(ctx context.Context) error { return fmt.Errorf("unknown strategy kind: %v", *s.Build.Spec.Strategy.Kind) } } else { - ctxlog.Info(ctx, "buildStrategy kind is nil, use default NamespacedBuildStrategyKind") + ctxlog.Info(ctx, "buildStrategy kind is nil, use default NamespacedBuildStrategyKind", namespace, s.Build.Namespace, name, s.Build.Name) if err := s.validateBuildStrategy(ctx, s.Build.Spec.Strategy.Name, s.Build); err != nil { return err }