Ver código fonte

fix(internal metrics): removed local dev code

Torkel Ödegaard 9 anos atrás
pai
commit
f79600b352
1 arquivos alterados com 1 adições e 3 exclusões
  1. 1 3
      pkg/metrics/publish.go

+ 1 - 3
pkg/metrics/publish.go

@@ -58,9 +58,7 @@ func updateTotalStats() {
 
 	// every interval also publish totals
 	metricPublishCounter++
-	if metricPublishCounter%2 == 0 {
-		metricsLogger.Info("Stats!")
-
+	if metricPublishCounter%10 == 0 {
 		// get stats
 		statsQuery := m.GetSystemStatsQuery{}
 		if err := bus.Dispatch(&statsQuery); err != nil {