Skip to content

Commit

Permalink
Print to stdout, not stderr (#928)
Browse files Browse the repository at this point in the history
Following the change in
prometheus/prometheus#8542 blackbox_exporter
will send all usage out to stdout, not stderr.

Fixes: #912
Signed-off-by: Marcelo E. Magallon <[email protected]>
  • Loading branch information
mem committed Jun 18, 2022
1 parent 66290d6 commit d26fcc6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ func main() {
}

func run() int {
kingpin.CommandLine.UsageWriter(os.Stdout)
promlogConfig := &promlog.Config{}
flag.AddFlags(kingpin.CommandLine, promlogConfig)
kingpin.Version(version.Print("blackbox_exporter"))
Expand Down

0 comments on commit d26fcc6

Please sign in to comment.