Skip to content

Commit e762514

Browse files
authored
Merge pull request #707 from ellistarn/register
chore: Make dynamic controller logging object-type agnostic.
2 parents ce8a1ce + d14d17b commit e762514

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/dynamiccontroller/dynamic_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,14 +308,14 @@ func (dc *DynamicController) processNextWorkItem(ctx context.Context) bool {
308308
// syncFunc reconciles a single item.
309309
func (dc *DynamicController) syncFunc(ctx context.Context, oi ObjectIdentifiers) error {
310310
gvrKey := fmt.Sprintf("%s/%s/%s", oi.GVR.Group, oi.GVR.Version, oi.GVR.Resource)
311-
dc.log.V(1).Info("Syncing resourcegraphdefinition instance request", "gvr", gvrKey, "namespacedKey", oi.NamespacedKey)
311+
dc.log.V(1).Info("Syncing object", "gvr", gvrKey, "namespacedKey", oi.NamespacedKey)
312312

313313
startTime := time.Now()
314314
defer func() {
315315
duration := time.Since(startTime)
316316
reconcileDuration.WithLabelValues(gvrKey).Observe(duration.Seconds())
317317
reconcileTotal.WithLabelValues(gvrKey).Inc()
318-
dc.log.V(1).Info("Finished syncing resourcegraphdefinition instance request",
318+
dc.log.V(1).Info("Finished syncing object",
319319
"gvr", gvrKey,
320320
"namespacedKey", oi.NamespacedKey,
321321
"duration", duration)

0 commit comments

Comments
 (0)