wrong repo in Dockerfile, remove some debug

This commit is contained in:
shoopea 2023-08-10 12:19:45 +02:00
parent 6381e9e35d
commit 4f82bb71ab
2 changed files with 1 additions and 4 deletions

View File

@ -7,7 +7,7 @@ WORKDIR /app
ARG COMMIT=latest 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 FROM alpine:latest

View File

@ -133,7 +133,6 @@ func main() {
} }
func (s *ShellyStatus) Fetch() { func (s *ShellyStatus) Fetch() {
log.Printf("Fetching")
resp, err := http.Get(fmt.Sprintf("http://%d:%d/status", shellyHost, *shellyPort)) resp, err := http.Get(fmt.Sprintf("http://%d:%d/status", shellyHost, *shellyPort))
if err != nil { if err != nil {
log.Fatalf("ShellyStatus.Fetch : http.Get (%s)", err) log.Fatalf("ShellyStatus.Fetch : http.Get (%s)", err)
@ -147,8 +146,6 @@ func (s *ShellyStatus) Fetch() {
if err = json.Unmarshal(body, s); err != nil { if err = json.Unmarshal(body, s); err != nil {
log.Fatalf("ShellyStatus.Fetch : json.Unmarshal (%s)", err) log.Fatalf("ShellyStatus.Fetch : json.Unmarshal (%s)", err)
} }
log.Printf("Fetched")
} }
func GetMetrics(c *gin.Context) { func GetMetrics(c *gin.Context) {