This commit is contained in:
shoopea 2023-08-10 12:44:46 +02:00
parent b49bcc8bfb
commit f527c21a90

View File

@ -133,7 +133,9 @@ func main() {
r := gin.Default()
r.GET("/metrics", GetMetrics)
r.Run(fmt.Sprintf(":%d", exporterPort))
if err := r.Run(fmt.Sprintf(":%d", exporterPort)); err != nil {
log.Fatalf("router.Run (%s)", err)
}
}
func (s *ShellyStatus) Fetch() {