mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #12940 from Miciah/Warning-to-Warningf
glog.Warning -> glog.Warningf
This commit is contained in:
commit
d839ab2024
@ -1773,7 +1773,7 @@ func findSecurityGroupForInstance(instance *ec2.Instance) *string {
|
|||||||
|
|
||||||
if securityGroupId != nil {
|
if securityGroupId != nil {
|
||||||
// We create instances with one SG
|
// We create instances with one SG
|
||||||
glog.Warning("Multiple security groups found for instance (%s); will use first group (%s)", orEmpty(instance.InstanceID), *securityGroupId)
|
glog.Warningf("Multiple security groups found for instance (%s); will use first group (%s)", orEmpty(instance.InstanceID), *securityGroupId)
|
||||||
continue
|
continue
|
||||||
} else {
|
} else {
|
||||||
securityGroupId = securityGroup.GroupID
|
securityGroupId = securityGroup.GroupID
|
||||||
|
@ -163,7 +163,7 @@ func (pc *podAndContainerCollector) Describe(ch chan<- *prometheus.Desc) {
|
|||||||
func (pc *podAndContainerCollector) Collect(ch chan<- prometheus.Metric) {
|
func (pc *podAndContainerCollector) Collect(ch chan<- prometheus.Metric) {
|
||||||
runningPods, err := pc.containerCache.GetPods()
|
runningPods, err := pc.containerCache.GetPods()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Warning("Failed to get running container information while collecting metrics: %v", err)
|
glog.Warningf("Failed to get running container information while collecting metrics: %v", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -310,7 +310,7 @@ func (runner *runner) run(op operation, args []string) ([]byte, error) {
|
|||||||
func (runner *runner) checkRule(table Table, chain Chain, args ...string) (bool, error) {
|
func (runner *runner) checkRule(table Table, chain Chain, args ...string) (bool, error) {
|
||||||
checkPresent, err := getIptablesHasCheckCommand(runner.exec)
|
checkPresent, err := getIptablesHasCheckCommand(runner.exec)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Warning("Error checking iptables version, assuming version at least 1.4.11: %v", err)
|
glog.Warningf("Error checking iptables version, assuming version at least 1.4.11: %v", err)
|
||||||
checkPresent = true
|
checkPresent = true
|
||||||
}
|
}
|
||||||
if checkPresent {
|
if checkPresent {
|
||||||
|
Loading…
Reference in New Issue
Block a user