Skip to content

Commit

Permalink
Template controller name when logging
Browse files Browse the repository at this point in the history
  • Loading branch information
janetkuo committed Feb 22, 2019
1 parent 2640b41 commit ef1ab51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/scaffold/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ import (
{{ .Resource.Group}}{{ .Resource.Version }} "{{ .ResourcePackage }}/{{ .Resource.Group}}/{{ .Resource.Version }}"
)
var log = logf.Log.WithName("controller")
var log = logf.Log.WithName("{{ lower .Resource.Kind }}-controller")
{{ else }} "context"
appsv1 "k8s.io/api/apps/v1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import (
crewv1 "sigs.k8s.io/kubebuilder/test/project/pkg/apis/crew/v1"
)

var log = logf.Log.WithName("controller")
var log = logf.Log.WithName("firstmate-controller")

/**
* USER ACTION REQUIRED: This is a scaffold file intended for the user to modify with their own Controller
Expand Down

0 comments on commit ef1ab51

Please sign in to comment.