Skip to content

Commit d839ab2

Browse files
committed
Merge pull request kubernetes#12940 from Miciah/Warning-to-Warningf
glog.Warning -> glog.Warningf
2 parents 1c7ebc4 + 8aa299d commit d839ab2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkg/cloudprovider/providers/aws/aws.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1773,7 +1773,7 @@ func findSecurityGroupForInstance(instance *ec2.Instance) *string {
17731773

17741774
if securityGroupId != nil {
17751775
// We create instances with one SG
1776-
glog.Warning("Multiple security groups found for instance (%s); will use first group (%s)", orEmpty(instance.InstanceID), *securityGroupId)
1776+
glog.Warningf("Multiple security groups found for instance (%s); will use first group (%s)", orEmpty(instance.InstanceID), *securityGroupId)
17771777
continue
17781778
} else {
17791779
securityGroupId = securityGroup.GroupID

pkg/kubelet/metrics/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func (pc *podAndContainerCollector) Describe(ch chan<- *prometheus.Desc) {
163163
func (pc *podAndContainerCollector) Collect(ch chan<- prometheus.Metric) {
164164
runningPods, err := pc.containerCache.GetPods()
165165
if err != nil {
166-
glog.Warning("Failed to get running container information while collecting metrics: %v", err)
166+
glog.Warningf("Failed to get running container information while collecting metrics: %v", err)
167167
return
168168
}
169169

pkg/util/iptables/iptables.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ func (runner *runner) run(op operation, args []string) ([]byte, error) {
310310
func (runner *runner) checkRule(table Table, chain Chain, args ...string) (bool, error) {
311311
checkPresent, err := getIptablesHasCheckCommand(runner.exec)
312312
if err != nil {
313-
glog.Warning("Error checking iptables version, assuming version at least 1.4.11: %v", err)
313+
glog.Warningf("Error checking iptables version, assuming version at least 1.4.11: %v", err)
314314
checkPresent = true
315315
}
316316
if checkPresent {

0 commit comments

Comments
 (0)