Skip to content

Commit

Permalink
Adjust verbosity of logs to production or debug
Browse files Browse the repository at this point in the history
  • Loading branch information
oshoval committed Oct 7, 2019
1 parent 7d6339e commit dd91bae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/controller/node/node_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ type ReconcileNode struct {
// Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
func (r *ReconcileNode) Reconcile(request reconcile.Request) (reconcile.Result, error) {
reqLogger := log.WithValues("Request.Namespace", request.Namespace, "Request.Name", request.Name)
reqLogger.Info("Reconciling Node")
reqLogger.V(1).Info("Reconciling Node")

// Fetch the Node instance
instance := &corev1.Node{}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ type ReconcileNodeNetworkStateReport struct {
// Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
func (r *ReconcileNodeNetworkStateReport) Reconcile(request reconcile.Request) (reconcile.Result, error) {
reqLogger := log.WithValues("Request.Namespace", request.Namespace, "Request.Name", request.Name)
reqLogger.Info("Reconciling NodeNetworkState report")
reqLogger.V(1).Info("Reconciling NodeNetworkState report")

// Fetch the NodeNetworkState instance
instance := &nmstatev1alpha1.NodeNetworkState{}
Expand Down

0 comments on commit dd91bae

Please sign in to comment.