From f527c21a90bbc876d891527cd748a555547f0dd9 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 10 Aug 2023 12:44:46 +0200 Subject: [PATCH] debug --- proxy.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/proxy.go b/proxy.go index eee18ea..96bc9bc 100644 --- a/proxy.go +++ b/proxy.go @@ -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() {