mirror of
https://github.com/docker/cli.git
synced 2026-01-23 15:21:32 +03:00
Merge pull request #6124 from vieux/standadize_debug_iptables
use stderr to debug iptables Upstream-commit: 0f40cedc2347432e20206e0a03594faeb251f3b1 Component: engine
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user