Skip to content

Commit

Permalink
Merge pull request #714 from SaschaSchwarze0/sascha-log-labels
Browse files Browse the repository at this point in the history
Add missing log labels
  • Loading branch information
openshift-merge-robot authored Apr 5, 2021
2 parents 6b50ab5 + 33f279f commit 7226f11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/validate/sourceurl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pkg/validate/strategies.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7226f11

Please sign in to comment.