diff --git a/pkg/networkservice/acl/common.go b/pkg/networkservice/acl/common.go index 71757dbf..1ecd906e 100644 --- a/pkg/networkservice/acl/common.go +++ b/pkg/networkservice/acl/common.go @@ -20,7 +20,6 @@ package acl import ( "context" - "fmt" "time" "github.com/networkservicemesh/govpp/binapi/acl" @@ -42,10 +41,9 @@ func create(ctx context.Context, vppConn api.Connection, tag string, isClient bo swIfIndex, ok := ifindex.Load(ctx, isClient) if !ok { - logger.Info("swIfIndex not found") return nil, errors.New("swIfIndex not found") } - logger.Infof(fmt.Sprintf("swIfIndex=%v", swIfIndex)) + logger.Debugf("swIfIndex=%v", swIfIndex) interfaceACLList := &acl.ACLInterfaceSetACLList{ SwIfIndex: swIfIndex, @@ -54,14 +52,14 @@ func create(ctx context.Context, vppConn api.Connection, tag string, isClient bo var err error interfaceACLList.Acls, err = addACLToACLList(ctx, vppConn, tag, false, aRules) if err != nil { - logger.Info("error adding acl to acl list ingress") + logger.Debug("error adding acl to acl list ingress") return nil, err } interfaceACLList.NInput = uint8(len(interfaceACLList.Acls)) egressACLIndeces, err := addACLToACLList(ctx, vppConn, tag, true, aRules) if err != nil { - logger.Info("error adding acl to acl list egress") + logger.Debug("error adding acl to acl list egress") return nil, err } interfaceACLList.Acls = append(interfaceACLList.Acls, egressACLIndeces...) @@ -69,7 +67,6 @@ func create(ctx context.Context, vppConn api.Connection, tag string, isClient bo _, err = acl.NewServiceClient(vppConn).ACLInterfaceSetACLList(ctx, interfaceACLList) if err != nil { - logger.Info("error setting acl list for interface") return nil, errors.Wrap(err, "vppapi ACLInterfaceSetACLList returned error") } return interfaceACLList.Acls, nil diff --git a/pkg/networkservice/acl/server.go b/pkg/networkservice/acl/server.go index 102f348b..98b4a9b4 100644 --- a/pkg/networkservice/acl/server.go +++ b/pkg/networkservice/acl/server.go @@ -82,7 +82,7 @@ func (a *aclServer) Close(ctx context.Context, conn *networkservice.Connection) for ind := range indices { _, err := acl.NewServiceClient(a.vppConn).ACLDel(ctx, &acl.ACLDel{ACLIndex: uint32(ind)}) if err != nil { - log.FromContext(ctx).Infof("ACL_SERVER: error deleting acls") + log.FromContext(ctx).Debug("ACL_SERVER: error deleting acls") } } diff --git a/pkg/networkservice/connectioncontext/ipcontext/routes/common.go b/pkg/networkservice/connectioncontext/ipcontext/routes/common.go index 92b0b374..4f9fec65 100644 --- a/pkg/networkservice/connectioncontext/ipcontext/routes/common.go +++ b/pkg/networkservice/connectioncontext/ipcontext/routes/common.go @@ -80,7 +80,7 @@ func routeAddDel(ctx context.Context, vppConn api.Connection, swIfIndex interfac WithField("tableID", tableID). WithField("isAdd", isAdd). WithField("duration", time.Since(now)). - WithField("vppapi", "IPRouteAddDel").Info("completed") + WithField("vppapi", "IPRouteAddDel").Debug("completed") return nil } diff --git a/pkg/networkservice/up/common.go b/pkg/networkservice/up/common.go index bd7c0d29..15d2840f 100644 --- a/pkg/networkservice/up/common.go +++ b/pkg/networkservice/up/common.go @@ -136,6 +136,6 @@ func initFunc(ctx context.Context, vppConn api.Connection) error { } log.FromContext(ctx). WithField("duration", time.Since(now)). - WithField("vppapi", "WantInterfaceEvents").Info("completed") + WithField("vppapi", "WantInterfaceEvents").Debug("completed") return nil } diff --git a/pkg/networkservice/up/peerup/common.go b/pkg/networkservice/up/peerup/common.go index f290544a..c7c1f0f0 100644 --- a/pkg/networkservice/up/peerup/common.go +++ b/pkg/networkservice/up/peerup/common.go @@ -118,7 +118,7 @@ func getAPIChannel(ctx context.Context, vppConn Connection, peerIndex uint32) (a } log.FromContext(ctx). WithField("duration", time.Since(now)). - WithField("vppapi", "WantWireguardPeerEvents").Info("completed") + WithField("vppapi", "WantWireguardPeerEvents").Debug("completed") go func() { <-ctx.Done() diff --git a/pkg/networkservice/vl3lb/common.go b/pkg/networkservice/vl3lb/common.go index 2c46019b..e03a4b20 100644 --- a/pkg/networkservice/vl3lb/common.go +++ b/pkg/networkservice/vl3lb/common.go @@ -97,7 +97,7 @@ func (lb *vl3lbClient) balanceNSE(ctx context.Context, loggerLb log.Logger, lbVp logger.Errorf("failed to dial: %v, URL: %v, err: %v", nse.Name, urlNSE.String(), err.Error()) return } - logger.Info("connected") + logger.Debug("connected") // 3. Monitor all connections containing the vl3-NSE name monitorClientNse := networkservice.NewMonitorConnectionClient(ccMonitor) diff --git a/pkg/networkservice/xconnect/l2bridgedomain/common.go b/pkg/networkservice/xconnect/l2bridgedomain/common.go index c198a534..3aba4917 100644 --- a/pkg/networkservice/xconnect/l2bridgedomain/common.go +++ b/pkg/networkservice/xconnect/l2bridgedomain/common.go @@ -154,7 +154,7 @@ func addDelVppBridgeDomain(ctx context.Context, vppConn api.Connection, bridgeID WithField("bridgeID", rsp.BdID). WithField("isAdd", isAdd). WithField("duration", time.Since(now)). - WithField("vppapi", "BridgeDomainAddDelV2").Info("completed") + WithField("vppapi", "BridgeDomainAddDelV2").Debug("completed") return rsp.BdID, nil } @@ -175,7 +175,7 @@ func addDelVppInterfaceBridgeDomain(ctx context.Context, vppConn api.Connection, WithField("isAdd", isAdd). WithField("shg", shg). WithField("duration", time.Since(now)). - WithField("vppapi", "SwInterfaceSetL2Bridge").Info("completed") + WithField("vppapi", "SwInterfaceSetL2Bridge").Debug("completed") return nil } diff --git a/pkg/networkservice/xconnect/l2xconnect/common.go b/pkg/networkservice/xconnect/l2xconnect/common.go index fe8e9fa3..7e14f16e 100644 --- a/pkg/networkservice/xconnect/l2xconnect/common.go +++ b/pkg/networkservice/xconnect/l2xconnect/common.go @@ -47,7 +47,7 @@ func addDel(ctx context.Context, vppConn api.Connection, addDel bool) error { vlanID, ok := vlan.Load(ctx, true) if ok { log.FromContext(ctx). - WithField("VLAN-ID", vlanID).Info("bridge is used instead of xconnect") + WithField("VLAN-ID", vlanID).Debug("bridge is used instead of xconnect") return nil }