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 8, 2023
1 parent 7aae4f4 commit ad1caac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/neg/metrics/metricscollector/metrics_collector.go
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 ad1caac

Please sign in to comment.