mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Improve iptables logging
This commit is contained in:
parent
c08161a781
commit
1268d1a8ff
@ -397,7 +397,7 @@ func (runner *runner) runContext(ctx context.Context, op operation, args []strin
|
|||||||
iptablesCmd := iptablesCommand(runner.protocol)
|
iptablesCmd := iptablesCommand(runner.protocol)
|
||||||
fullArgs := append(runner.waitFlag, string(op))
|
fullArgs := append(runner.waitFlag, string(op))
|
||||||
fullArgs = append(fullArgs, args...)
|
fullArgs = append(fullArgs, args...)
|
||||||
klog.V(5).Infof("running iptables %s %v", string(op), args)
|
klog.V(5).Infof("running iptables: %s %v", iptablesCmd, fullArgs)
|
||||||
if ctx == nil {
|
if ctx == nil {
|
||||||
return runner.exec.Command(iptablesCmd, fullArgs...).CombinedOutput()
|
return runner.exec.Command(iptablesCmd, fullArgs...).CombinedOutput()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user