From 4f82bb71abce8b8cbe44d2b18ba81fad4724afb6 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 10 Aug 2023 12:19:45 +0200 Subject: [PATCH] wrong repo in Dockerfile, remove some debug --- Dockerfile | 2 +- proxy.go | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0a3f884..939e5f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ WORKDIR /app ARG COMMIT=latest -RUN GOBIN=/app go install github.com/shoopea/shelly-proxy@$COMMIT +RUN GOBIN=/app go install git.siteop.biz/shoopea/shelly-proxy@$COMMIT FROM alpine:latest diff --git a/proxy.go b/proxy.go index 8491857..55daeae 100644 --- a/proxy.go +++ b/proxy.go @@ -133,7 +133,6 @@ func main() { } func (s *ShellyStatus) Fetch() { - log.Printf("Fetching") resp, err := http.Get(fmt.Sprintf("http://%d:%d/status", shellyHost, *shellyPort)) if err != nil { log.Fatalf("ShellyStatus.Fetch : http.Get (%s)", err) @@ -147,8 +146,6 @@ func (s *ShellyStatus) Fetch() { if err = json.Unmarshal(body, s); err != nil { log.Fatalf("ShellyStatus.Fetch : json.Unmarshal (%s)", err) } - - log.Printf("Fetched") } func GetMetrics(c *gin.Context) {