From 6d70b5e210207d4852d171b075f08691b509e294 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) --- iptables/iptables.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iptables/iptables.go b/iptables/iptables.go index e3f4d74..748b69a 100644 --- a/iptables/iptables.go +++ b/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()