clone labels when sending them to Handle function for stdin target (#2570)

k32
Ed Welch 5 years ago committed by GitHub
parent 43f5841d47
commit b8b24f3129
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkg/promtail/targets/stdin/stdin_target_manager.go

@ -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 {

Loading…
Cancel
Save