Skip to content

Commit

Permalink
Merge pull request #260 from loganlinn/master
Browse files Browse the repository at this point in the history
Suppress log output for __complete commands
  • Loading branch information
cjimti authored Apr 4, 2023
2 parents efc064b + a5537b8 commit 2385d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/kubefwd/kubefwd.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func init() {
}

log.SetOutput(&LogOutputSplitter{})
if len(args) > 0 && args[0] == "completion" {
if len(args) > 0 && (args[0] == "completion" || args[0] == "__complete") {
log.SetOutput(ioutil.Discard)
}
}
Expand Down

0 comments on commit 2385d1b

Please sign in to comment.