mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
Properly log and handle HTTP server error (#2685)
This commit is contained in:
committed by
Preston Van Loon
parent
c66186b54a
commit
3a167e54b5
@@ -74,7 +74,7 @@ func main() {
|
||||
|
||||
http.HandleFunc("/metrics", MetricsHTTP)
|
||||
http.HandleFunc("/reload", ReloadHTTP)
|
||||
panic(http.ListenAndServe(fmt.Sprintf("0.0.0.0:%d", *port), nil))
|
||||
log.Fatal(http.ListenAndServe(fmt.Sprintf("0.0.0.0:%d", *port), nil))
|
||||
}
|
||||
|
||||
// Watching address wrapper
|
||||
|
||||
Reference in New Issue
Block a user