Skip to content

Change "Not forwarding" messages to debug level #2596

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hack/test-port-forwarding.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down
2 changes: 1 addition & 1 deletion pkg/hostagent/port.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pkg/portfwd/forward.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading