Use quiet flag in logcli tail.go. (#6033)

pull/5943/head^2
Dylan Guedes 4 years ago committed by GitHub
parent 47ce070b73
commit 162e82ebfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      pkg/logcli/query/tail.go

@ -36,11 +36,11 @@ func (q *Query) TailQuery(delayFor time.Duration, c client.Client, out output.Lo
tailResponse := new(loghttp.TailResponse)
if len(q.IgnoreLabelsKey) > 0 {
if len(q.IgnoreLabelsKey) > 0 && !q.Quiet {
log.Println("Ignoring labels key:", color.RedString(strings.Join(q.IgnoreLabelsKey, ",")))
}
if len(q.ShowLabelsKey) > 0 {
if len(q.ShowLabelsKey) > 0 && !q.Quiet {
log.Println("Print only labels key:", color.RedString(strings.Join(q.ShowLabelsKey, ",")))
}

Loading…
Cancel
Save