diff --git a/pkg/iptables/iptables.go b/pkg/iptables/iptables.go index e3f4d74b9d..748b69a444 100644 --- a/pkg/iptables/iptables.go +++ b/pkg/iptables/iptables.go @@ -158,7 +158,7 @@ func Raw(args ...string) ([]byte, error) { } if os.Getenv("DEBUG") != "" { - fmt.Printf("[DEBUG] [iptables]: %s, %v\n", path, args) + fmt.Fprintf(os.Stderr, fmt.Sprintf("[debug] %s, %v\n", path, args)) } output, err := exec.Command(path, args...).CombinedOutput()