Skip to content

Commit

Permalink
feat: remove info logging for pod check
Browse files Browse the repository at this point in the history
Set value to debug for pod change

Signed-off-by: jcriadomarco <jcriadomarco@vmware.com>
  • Loading branch information
javiercri committed Jun 12, 2023
1 parent 47ad1b3 commit 47e0fb0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions config-reloader/datasource/kube_informer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ package datasource
import (
"context"
"fmt"
"github.com/vmware/kube-fluentd-operator/config-reloader/fluentd"
"github.com/vmware/kube-fluentd-operator/config-reloader/util"
"os"
"sort"
"strings"
"time"

"github.com/vmware/kube-fluentd-operator/config-reloader/fluentd"
"github.com/vmware/kube-fluentd-operator/config-reloader/util"

"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"

Expand Down Expand Up @@ -332,7 +333,7 @@ func (d *kubeInformerConnection) discoverNamespaces(ctx context.Context) ([]stri

func (d *kubeInformerConnection) handlePodChange(ctx context.Context, obj interface{}) {
mObj := obj.(*core.Pod)
logrus.Infof("Detected pod change %s in namespace: %s", mObj.GetName(), mObj.GetNamespace())
logrus.Debugf("Detected pod change %s in namespace: %s", mObj.GetName(), mObj.GetNamespace())
configdata, err := d.kubeds.GetFluentdConfig(ctx, mObj.GetNamespace())
nsConfigStr := fmt.Sprintf("%#v", configdata)

Expand Down

0 comments on commit 47e0fb0

Please sign in to comment.