format incorrectAddresses in klog

This commit is contained in:
qingsenLi 2020-10-22 17:26:29 +08:00
parent ededd08ba1
commit 9ad39c9eda
2 changed files with 2 additions and 2 deletions

View File

@ -293,7 +293,7 @@ func NewProxier(ipt utiliptables.Interface,
var incorrectAddresses []string
nodePortAddresses, incorrectAddresses = utilproxy.FilterIncorrectCIDRVersion(nodePortAddresses, isIPv6)
if len(incorrectAddresses) > 0 {
klog.Warning("NodePortAddresses of wrong family; ", incorrectAddresses)
klog.Warningf("NodePortAddresses of wrong family; %s", incorrectAddresses)
}
proxier := &Proxier{
portsMap: make(map[utilproxy.LocalPort]utilproxy.Closeable),

View File

@ -448,7 +448,7 @@ func NewProxier(ipt utiliptables.Interface,
var incorrectAddresses []string
nodePortAddresses, incorrectAddresses = utilproxy.FilterIncorrectCIDRVersion(nodePortAddresses, isIPv6)
if len(incorrectAddresses) > 0 {
klog.Warning("NodePortAddresses of wrong family; ", incorrectAddresses)
klog.Warningf("NodePortAddresses of wrong family; %s", incorrectAddresses)
}
proxier := &Proxier{
portsMap: make(map[utilproxy.LocalPort]utilproxy.Closeable),