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) {