Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Commit

Permalink
Fix string(int) in Kinesis logger for Go 1.15 compatibility (#2309)
Browse files Browse the repository at this point in the history
  • Loading branch information
jalseth committed Sep 27, 2020
1 parent 44c3396 commit 692171d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/logging/kinesis.go
Expand Up @@ -3,6 +3,7 @@ package logging
import (
"context"
"encoding/json"
"fmt"
"math"
"math/rand"
"time"
Expand Down Expand Up @@ -104,7 +105,7 @@ func (k *kinesisLogWriter) Write(ctx context.Context, logs []json.RawMessage) er
for _, log := range logs {
// Evenly distribute logs across shards by assigning each
// kinesis.PutRecordsRequestEntry a random partition key.
partitionKey := string(k.rand.Intn(256))
partitionKey := fmt.Sprint(k.rand.Intn(256))

// We don't really have a good option for what to do with logs
// that are too big for Kinesis. This behavior is consistent
Expand Down

0 comments on commit 692171d

Please sign in to comment.