Skip to content

Commit

Permalink
skyfish: log when failing to parse loki json
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorropo authored and hacdias committed Feb 6, 2024
1 parent 2639742 commit a91ffe0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/loki/loki.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ func (l *LokiTailer) Run(ctx context.Context) error {
err := json.Unmarshal([]byte(entry.Line()), &line)
if err != nil {
l.errorCounter.Add(1)
log.Printf("failed to parse loki json: %v", err)
continue
}

Expand Down

0 comments on commit a91ffe0

Please sign in to comment.