Skip to content

Commit

Permalink
Fix logger in instrumentation webhook (open-telemetry#698)
Browse files Browse the repository at this point in the history
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
  • Loading branch information
pavolloffay authored Feb 14, 2022
1 parent 25ddffd commit 8e35684
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apis/v1alpha1/instrumentation_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,19 @@ var _ webhook.Validator = &Instrumentation{}

// ValidateCreate implements webhook.Validator so a webhook will be registered for the type.
func (in *Instrumentation) ValidateCreate() error {
opentelemetrycollectorlog.Info("validate create", "name", in.Name)
instrumentationlog.Info("validate create", "name", in.Name)
return in.validate()
}

// ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.
func (in *Instrumentation) ValidateUpdate(old runtime.Object) error {
opentelemetrycollectorlog.Info("validate update", "name", in.Name)
instrumentationlog.Info("validate update", "name", in.Name)
return in.validate()
}

// ValidateDelete implements webhook.Validator so a webhook will be registered for the type.
func (in *Instrumentation) ValidateDelete() error {
opentelemetrycollectorlog.Info("validate delete", "name", in.Name)
instrumentationlog.Info("validate delete", "name", in.Name)
return nil
}

Expand Down

0 comments on commit 8e35684

Please sign in to comment.