Skip to content

Commit

Permalink
Merge pull request #712 from gyuho/log-format-fix
Browse files Browse the repository at this point in the history
fix(controllers/tagging): fix log format string
  • Loading branch information
k8s-ci-robot authored Nov 1, 2023
2 parents 4b488ef + aa75675 commit 7c6933a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkg/controllers/tagging/tagging_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ package tagging
import (
"crypto/md5"
"fmt"
"sort"
"strings"
"time"

"golang.org/x/time/rate"
v1 "k8s.io/api/core/v1"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
Expand All @@ -29,9 +33,6 @@ import (
awsv1 "k8s.io/cloud-provider-aws/pkg/providers/v1"
nodehelpers "k8s.io/cloud-provider/node/helpers"
"k8s.io/klog/v2"
"sort"
"strings"
"time"
)

// workItem contains the node and an action for that node
Expand Down Expand Up @@ -213,7 +214,7 @@ func (tc *Controller) process() bool {

timeTaken := time.Since(workItem.enqueueTime).Seconds()
recordWorkItemLatencyMetrics(workItemDequeuingTimeWorkItemMetric, timeTaken)
klog.Infof("Dequeuing latency %s", timeTaken)
klog.Infof("Dequeuing latency %f seconds", timeTaken)

instanceID, err := awsv1.KubernetesInstanceID(workItem.node.Spec.ProviderID).MapToAWSInstanceID()
if err != nil {
Expand Down

0 comments on commit 7c6933a

Please sign in to comment.