Update trending.go

This commit is contained in:
André Medeiros 2022-05-25 15:57:55 -04:00 committed by GitHub
parent b763e6f875
commit 3a5e504ba7

View file

@ -207,7 +207,7 @@ func (tc *trendingConsumer) Consume(delivery rmq.Delivery) {
middlePost := tps.Count / 2 middlePost := tps.Count / 2
medianScore := tps.Children[middlePost].Score medianScore := tps.Children[middlePost].Score
tc.logger.Debug("calculated median score", tc.logger.Info("calculated median score",
zap.Int64("subreddit#id", id), zap.Int64("subreddit#id", id),
zap.String("subreddit#name", subreddit.NormalizedName()), zap.String("subreddit#name", subreddit.NormalizedName()),
zap.Int64("score", medianScore), zap.Int64("score", medianScore),