use stderr to debug iptables

Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
This commit is contained in:
Victor Vieux 2014-05-30 19:39:42 +00:00
parent 251de0887b
commit 5708aa62f3
1 changed files with 1 additions and 1 deletions

View File

@ -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()