Skip to content

Commit

Permalink
Add sprintf to properly print with new klog
Browse files Browse the repository at this point in the history
- klog changed formatting from Sprintf to json.Encode kubernetes/klog#375, so current code was returning error log
  • Loading branch information
panslava committed Dec 9, 2023
1 parent 33ab705 commit 2e12e22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/neg/metrics/metricscollector/metrics_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (sm *SyncerMetrics) export() {
"Network Endpoint Count", lpMetrics.NumberOfEndpoints,
"Endpoint Count From EPS", epCount,
"Endpoint Slice Count", epsCount,
"NEG Count", negCounts,
"NEG Count", fmt.Sprintf("%+v", negCounts),
)

finishedDurations, longestUnfinishedDurations := sm.computeDualStackMigrationDurations()
Expand Down

0 comments on commit 2e12e22

Please sign in to comment.