Skip to content

Commit a027dd4

Browse files
committed
update
1 parent 466549a commit a027dd4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pkg/builder/controller.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,11 @@ func (blder *Builder) doController(r reconcile.Reconciler) error {
312312

313313
// Setup the logger.
314314
if ctrlOptions.LogConstructor == nil {
315-
log := blder.mgr.GetLogger()
316-
log = log.WithValues("reconcilerGroup", gvk.Group, "reconcilerKind", gvk.Kind)
317-
log = log.WithValues("controller", controllerName)
315+
log = blder.mgr.GetLogger().WithValues(
316+
"controller", controllerName,
317+
"controllerGroup", gvk.Group,
318+
"controllerKind", gvk.Kind,
319+
)
318320

319321
lowerCamelCaseKind := strings.ToLower(gvk.Kind[:1]) + gvk.Kind[1:]
320322

0 commit comments

Comments
 (0)