Merge pull request #6124 from vieux/standadize_debug_iptables

use stderr to debug iptables
This commit is contained in:
unclejack 2014-05-31 00:46:28 +03:00
commit 0f40cedc23

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