From 5708aa62f36eadca5ada235ca05fddeb1510c1c6 Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Fri, 30 May 2014 19:39:42 +0000 Subject: [PATCH] use stderr to debug iptables Docker-DCO-1.1-Signed-off-by: Victor Vieux (github: vieux) --- pkg/iptables/iptables.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()