diff --git a/cmd/nut_exporter/main.go b/cmd/nut_exporter/main.go index 35183d1..8480e3d 100644 --- a/cmd/nut_exporter/main.go +++ b/cmd/nut_exporter/main.go @@ -4,6 +4,7 @@ package main import ( "flag" + "log" "net/http" "strings" @@ -21,5 +22,5 @@ func main() { c := nutcollector.New(strings.Fields(*fHosts)) prometheus.MustRegister(c) http.Handle("/metrics", promhttp.Handler()) - http.ListenAndServe(*fListen, nil) + log.Fatal(http.ListenAndServe(*fListen, nil)) }