mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-22 03:37:43 +00:00
try logging posts differently
This commit is contained in:
parent
e7faf73834
commit
be343deab8
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ import (
|
|||
"os"
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/DataDog/datadog-go/statsd"
|
||||
|
@ -214,7 +215,7 @@ func (tc *trendingConsumer) Consume(delivery rmq.Delivery) {
|
|||
tc.logger.Info("calculated median score",
|
||||
zap.Int64("subreddit#id", id),
|
||||
zap.String("subreddit#name", subreddit.NormalizedName()),
|
||||
zap.Strings("subreddit#posts", posts),
|
||||
zap.String("subreddit#posts", strings.Join(posts, "\n")),
|
||||
zap.Int64("score", medianScore),
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue