Skip to content

Commit

Permalink
Change log level (#2362)
Browse files Browse the repository at this point in the history
* change log level

* warning to warningf
  • Loading branch information
changluyi committed Feb 20, 2023
1 parent 13f345d commit 1974f8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/pod.go
Expand Up @@ -67,7 +67,7 @@ func (n *NamedPort) AddNamedPortByPod(pod *v1.Pod) {
if n.namedPortMap[ns][port.Name].PortId == port.ContainerPort {
n.namedPortMap[ns][port.Name].Pods[podName] = struct{}{}
} else {
klog.Warning("named port %s has already be defined with portID %d",
klog.Warningf("named port %s has already be defined with portID %d",
port.Name, n.namedPortMap[ns][port.Name].PortId)
}
continue
Expand Down

0 comments on commit 1974f8b

Please sign in to comment.