diff --git a/prometheus.go b/prometheus.go index d61f09c..567052c 100644 --- a/prometheus.go +++ b/prometheus.go @@ -13,7 +13,7 @@ func PrometheusBoot(port int) { go func() { err := http.ListenAndServe("0.0.0.0"+strconv.Itoa(port), nil) if err != nil { - log.Fatal("启动普罗米修斯失败!") + log.Fatal("启动普罗米修斯失败!", err) } log.Println("启动普罗米修斯监控成功! 端口:" + strconv.Itoa(port)) }()