Browse code

use stderr to debug iptables

Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)

Victor Vieux authored on 2014/05/31 04:39:42
Showing 1 changed files
... ...
@@ -158,7 +158,7 @@ func Raw(args ...string) ([]byte, error) {
158 158
 	}
159 159
 
160 160
 	if os.Getenv("DEBUG") != "" {
161
-		fmt.Printf("[DEBUG] [iptables]: %s, %v\n", path, args)
161
+		fmt.Fprintf(os.Stderr, fmt.Sprintf("[debug] %s, %v\n", path, args))
162 162
 	}
163 163
 
164 164
 	output, err := exec.Command(path, args...).CombinedOutput()