Skip to content

Commit

Permalink
Remove format from log string
Browse files Browse the repository at this point in the history
  • Loading branch information
adriandieter committed Dec 2, 2024
1 parent 8a225e2 commit ef410d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/controller/account_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type AccountReconciler struct {
// - https://pkg.go.dev/sigs.k8s.io/[email protected]/pkg/reconcile
func (r *AccountReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
log := klog.FromContext(ctx)
log.Info("reconcile %s", "namespace", req.Namespace, "name", req.Name)
log.Info("reconcile", "namespace", req.Namespace, "name", req.Name)

// TODO(user): your logic here

Expand Down
2 changes: 1 addition & 1 deletion internal/controller/consumer_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type ConsumerReconciler struct {
// - https://pkg.go.dev/sigs.k8s.io/[email protected]/pkg/reconcile
func (r *ConsumerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
log := klog.FromContext(ctx)
log.Info("reconcile %s", "namespace", req.Namespace, "name", req.Name)
log.Info("reconcile", "namespace", req.Namespace, "name", req.Name)

return ctrl.Result{}, nil
}
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/stream_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type StreamReconciler struct {
// - https://pkg.go.dev/sigs.k8s.io/[email protected]/pkg/reconcile
func (r *StreamReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
log := klog.FromContext(ctx)
log.Info("reconcile %s", "namespace", req.Namespace, "name", req.Name)
log.Info("reconcile", "namespace", req.Namespace, "name", req.Name)
// TODO(user): your logic here

return ctrl.Result{}, nil
Expand Down

0 comments on commit ef410d1

Please sign in to comment.