Skip to content

Commit

Permalink
chore(logcache fetcher): Info -> Debug logs
Browse files Browse the repository at this point in the history
# Issue

Some `Info` log statements were actually `Debug` log statements and filling up our log files.

# Fix

Info -> Debug
  • Loading branch information
silvestre authored Nov 19, 2024
1 parent ebda106 commit 53624d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/autoscaler/eventgenerator/metric/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ func (l *logCacheFetcher) getMetricsPromQLAPI(appId string, metricType string, c
metricTypeUnit = models.UnitMilliseconds
}

l.logger.Info("query-promql-api", lager.Data{"query": query})
l.logger.Debug("query-promql-api", lager.Data{"query": query})
result, err := l.logCacheClient.PromQL(context.Background(), query, logcache.WithPromQLTime(now))
if err != nil {
return []models.AppInstanceMetric{}, fmt.Errorf("failed getting PromQL result (metricType: %s, appId: %s, collectionInterval: %s, query: %s, time: %s): %w", metricType, appId, collectionIntervalSeconds, query, now.String(), err)
}
l.logger.Info("received-promql-api-result", lager.Data{"result": result, "query": query})
l.logger.Debug("received-promql-api-result", lager.Data{"result": result, "query": query})

// safeguard: the query ensures that we get a vector but let's double-check
vector := result.GetVector()
Expand Down

0 comments on commit 53624d2

Please sign in to comment.