mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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
251de0887b
commit
5708aa62f3
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