Skip to content

Commit

Permalink
clone labels when sending them to Handle function for stdin target (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
slim-bean authored Sep 1, 2020
1 parent 43f5841 commit b8b24f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/promtail/targets/stdin/stdin_target_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (t *readerTarget) read() {
}
continue
}
if err := t.out.Handle(t.lbs, time.Now(), line); err != nil {
if err := t.out.Handle(t.lbs.Clone(), time.Now(), line); err != nil {
level.Error(t.logger).Log("msg", "error sending line", "err", err)
}
if err == io.EOF {
Expand Down

0 comments on commit b8b24f3

Please sign in to comment.