Browse Source

Report ListenAndServe errors

pull/1/head
Juergen Hoetzel 8 years ago
parent
commit
e2c6843a81
  1. 3
      main.go

3
main.go

@ -20,6 +20,7 @@ import (
"net/http"
"sync"
"time"
"log"
"github.com/prometheus/client_golang/prometheus"
@ -323,5 +324,5 @@ func main() {
prometheus.MustRegister(collect_errors)
http.Handle("/metrics", prometheus.Handler())
http.ListenAndServe(*flag_addr, nil)
log.Fatal(http.ListenAndServe(*flag_addr, nil))
}

Loading…
Cancel
Save