diff --git a/hack/test-port-forwarding.pl b/hack/test-port-forwarding.pl index 8245cf9396e..86c8778ba78 100755 --- a/hack/test-port-forwarding.pl +++ b/hack/test-port-forwarding.pl @@ -6,7 +6,7 @@ # running to perform the tests: # # ./hack/test-port-forwarding.pl templates/default.yaml -# limactl --tty=false start templates/default.yaml +# limactl --tty=false --log-level debug start templates/default.yaml # git restore templates/default.yaml # ./hack/test-port-forwarding.pl default # diff --git a/pkg/hostagent/port.go b/pkg/hostagent/port.go index 4c39b953d50..1a541a5c7c0 100644 --- a/pkg/hostagent/port.go +++ b/pkg/hostagent/port.go @@ -94,7 +94,7 @@ func (pf *portForwarder) OnEvent(ctx context.Context, ev *api.Event) { } local, remote := pf.forwardingAddresses(f) if local == "" { - logrus.Infof("Not forwarding TCP %s", remote) + logrus.Debugf("Not forwarding TCP %s", remote) continue } logrus.Infof("Forwarding TCP from %s to %s", remote, local) diff --git a/pkg/portfwd/forward.go b/pkg/portfwd/forward.go index cf616d8de4d..92eb1118b05 100644 --- a/pkg/portfwd/forward.go +++ b/pkg/portfwd/forward.go @@ -26,7 +26,7 @@ func (fw *Forwarder) OnEvent(ctx context.Context, client *guestagentclient.Guest for _, f := range ev.LocalPortsAdded { local, remote := fw.forwardingAddresses(f) if local == "" { - logrus.Infof("Not forwarding %s %s", strings.ToUpper(f.Protocol), remote) + logrus.Debugf("Not forwarding %s %s", strings.ToUpper(f.Protocol), remote) continue } logrus.Infof("Forwarding %s from %s to %s", strings.ToUpper(f.Protocol), remote, local)