use stderr to debug iptables
Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
This commit is contained in:
parent
d9882a62ff
commit
6d70b5e210
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue