forked from mirrors/statsd_exporter
http listener: log and fail on ListenAndServe error
This commit is contained in:
parent
5a9d2f996a
commit
6ac8203d40
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -52,7 +52,7 @@ func serveHTTP() {
|
||||||
</body>
|
</body>
|
||||||
</html>`))
|
</html>`))
|
||||||
})
|
})
|
||||||
http.ListenAndServe(*listenAddress, nil)
|
log.Fatal(http.ListenAndServe(*listenAddress, nil))
|
||||||
}
|
}
|
||||||
|
|
||||||
func udpAddrFromString(addr string) *net.UDPAddr {
|
func udpAddrFromString(addr string) *net.UDPAddr {
|
||||||
|
|
Loading…
Reference in a new issue